Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in IIS module for filebeat. #12710

Closed
syedsfayaz opened this issue Jun 28, 2019 · 1 comment · Fixed by #13225
Closed

Error in IIS module for filebeat. #12710

syedsfayaz opened this issue Jun 28, 2019 · 1 comment · Fixed by #13225
Assignees
Labels
Filebeat Filebeat Team:Integrations Label for the Integrations team

Comments

@syedsfayaz
Copy link

syedsfayaz commented Jun 28, 2019

@kaiyan-sheng As discussed I have created a ticket for the issue I'm seeing with the filebeat IIS module.

Attached url for reference.

For confirmed bugs, please report:

@kaiyan-sheng kaiyan-sheng added Team:Integrations Label for the Integrations team Filebeat Filebeat labels Jul 1, 2019
@veccsolutions
Copy link

My fix for a very similar issue, in the modules\iis\access\ingest\default.json file in the patterns area, replace the URIPATH with NOTSPACE. It fixes a whole bunch of other issues with the url parsing, like when [ and ] are put in there. Burp suite does checks with those and ends up breaking the import for those particular line entries, the error.message property stated that there was no matching Grok expressions.

You will need to update the pipeline in elastic search. For powershell, use something like:
Invoke-WebRequest -uri http://<elasticurl>:9200/_ingest/pipeline/filebeat-7.2.0-iis-access-default -ContentType "application/json" -InFile "default.json" -Method PUT

Worked for me anyways.

Thats not the only issue in the iis module, in the error ingest default json file, there is a destination port that is specified as IPORHOST. It should be NUMBER. %{IPORHOST:destination.port:long} needs to be %{NUMBER:destination.port:long}. I also made the change of (?:%{URIPATHPARAM:url.original}|-)(?: -)? to (?:%{NOTSPACE:url.original}|-)(?: -)?. The URL to update the error one is http://<elasticurl>:9200/_ingest/pipeline/filebeat-7.2.0-iis-error-default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Filebeat Filebeat Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants