Hi all
ELK version: 6.2.4
Platform: Windows Server 2012
I am using the IIS module which is working perfectly. I added 2 headers to my log file in IIS and they are showing in the log file.
I then updated my IIS grok patterns to pull those 2 new fields into elasticsearch.
I proceeded to update the Index patters and I can see those 2 fields under my filebeat-* index patterns.
But, when I query the filebeat-2019.09.13 pattern, those fields are not in the JSON response. I also checked the Discover page in Kibana, and they are not there.
Filebeat is definitely sending those fields up. (I confirmed this by changing the output to a file, and observing what is being logged to the file).
I checked the Kibana verbose logs as well as the Elasticsearch logs (and filebeat logs), but there is nothing in the logs, no Errors and no Warnings.
Here is an example of a log in my file (IP addresses X'ed out):
2019-09-13 13:54:38 xxx.xxx.xxx.26 GET / - 80 - xxx.xxx.xxx.71 Mozilla/5.0+(compatible;+CloudFlare-AlwaysOnline/1.0;++http://www.cloudflare.com/always-online)+AppleWebKit/534.34 - 200 0 0 265 xxx.xxx.xxx.134 xxx.xxx.xxx.134
Here is my Grok pattern (I tried different data types including IP, IPHOST, Greedydata,etc, but no luck). I also made these 2 new fields optional and not optional, but also no luck.
"%{TIMESTAMP_ISO8601:iis.access.time} %{IPORHOST:iis.access.server_ip} %{WORD:iis.access.method} %{URIPATH:iis.access.url} %{NOTSPACE:iis.access.query_string} %{NUMBER:iis.access.port} %{NOTSPACE:iis.access.user_name} %{IPORHOST:iis.access.remote_ip} %{NOTSPACE:iis.access.agent} %{NOTSPACE:iis.access.referrer} %{NUMBER:iis.access.response_code} %{NUMBER:iis.access.sub_status} %{NUMBER:iis.access.win32_status} %{NUMBER:iis.access.request_time_ms} (%{DATA:iis.access.orig_ip_from_cloudflare})? (%{DATA:iis.access.x_forwarded_ip})?",
All fields are in the JSON output, except for these two:
(%{DATA:iis.access.orig_ip_from_cloudflare})? (%{DATA:iis.access.x_forwarded_ip})
I also deleted all my indexes (its a test instance so it is OK) and started from scratch, but alas, no luck with this either.
Your help will be greatly appreciated.