Hi there,
In 6.2 I was parsing IIS logs with Filebeat to Elasticsearch using a pipeline with grok filters, and modifying the filebeat.yml file to use the setup.template.name
and setup.template.pattern
. I was able to configure the grok filter and the ingest to include the X-Forwarded-For header, which was important since we're using an AWS Load Balancer.
I upgraded to 6.3 and am trying out the IIS Module. It works great (especially the user agent ingestion, which I hadn't yet tried to work with on 6.2). The problem is I don't seem to have any way of getting the X-Forwarded header to play nicely with the module.
My first question is, is it possible to modify the grok filter in the default.json ingest file for the IIS Module to include additional fields? I've tried adding %{NOTSPACE:iis.access.X-Forwarded-For}"
and some variations to the grok filter on the default.json, and changing the "geoip" field like this:
{ "geoip": { "field": "iis.access.X-Forwarded-For", "target_field": "iis.access.geoip"}
But that does not work at all, I don't see an X-Forwarded header nor a geoip.
I've also tried adding the X-Forwarded-For header to the Filebeat fields.yml file, with the type of "array" (since that's how it looks like it's being done with nginx).
So that brings me back to my question of whether modifying these default files is even possible, or do I need to go back to how I was doing it previous to the IIS Module?
If I do need to create the custom JSON and ingest pipeline, will I still be able to use the IIS Module along with the geoip and user agent plugins?
I can provide more configs if needed, but just looking for some general guidance at this point since I'm hitting a wall.