Parsing IIS logs from filebeat #2366
Replies: 3 comments 5 replies
-
I tried rewriting the entire thing using the dissect function as used here: https://github.com/Security-Onion-Solutions/securityonion/blob/master/salt/elasticsearch/files/ingest/filterlog Unfortunately no dice. I am not sure if I need to reference the new ingest file in some other global config? |
Beta Was this translation helpful? Give feedback.
-
On my 12th hour trying to grasp how a simple csv filebeat parsing can be done using elasticsearch ingest. An example would be highly appreciated. Looking at the other pipelines/ingester files (syslog, filterlog, common etc.) does not really give me insight, on how the filtering and processesing is done. Say you have a file being shipped from Windows using filebeat with this pattern: How can I can split the message field like: Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
Thanks Doug. I think I got the processor right: { It is probably something to do with required parameters in the file before or after above example. Not sure if it should be shipped to another processor? I also need some way of filtering to what input this is applied. Like only beat.hostname or specific tags. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So I got a little problem with my IIS logs not being parsed. Only the message field is generated containing the full text.
As I understand the processing is now done using elasticsearch and not logstash. I tried copying the old definition to the /opt/so/saltstack/local/salt/elasticsearch/files/ingest/ - after restarting elastic, the file is copied to /opt/so/conf/elasticsearch/ingest/
Unfortunately this does not generate any new fields.
Can somebody point me in the right direction?
filter {
if "IIS" in [tags] {
csv {
separator => " "
columns => ["event_data.date","event_data.time","event_data.s-ip","event_data.cs-method","event_data.cs-uri-stem","event_data.cs-uri-query","event_data.s-port","event_data.cs-username","source_ip","event_data.csu","event_data.csr","event_data.sc-status","event_data.sc-substatus","event_data.sc-win32-status","event_data.time-taken"]
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions