-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[FileBeat] Fortinet module doesn't handle multiple IP addresses in dns.resolved_ip (ipaddr) field. #19154
Comments
i hit another issue, probably Fortinet stupidness:
in this case it seems the fields srcip and dstip (both ipv6 only) are wrapped in square brackets? |
i fixed this one by the following changes to the traffic pipeline
I'm not sure if a) that is the optimal way to do it, and b) if these fixes need to go to the firewall pipeline, rather than traffic and utm? the latter could occur elsewhere although i've not seen it. Regards |
Pinging @elastic/siem (Team:SIEM) |
@fredtj Thanks for your feedback! For your first question, adding that one in as we speak, together with part of the timestamp issue from earlier. I have also created a separate issue for your second one, as that one seems to be forticlient, which I have not added as a fileset yet as I do not have any testdata for it. For adding fortianalyzer support I have created this issue: |
Filebeat Fortinet module doesn't handle multiple IP addresses in dns.resolved_ip (ipaddr) field.
Sample log message:
timestamp=1591954984 tz="UTC+1:00" devname="xxx" devid="xxx" vd="root" date=2020-06-12 time=10:43:04 logid="1501054401" type="utm" subtype="dns" eventtype="dns-response" level="information" eventtime=1591954984675787304 tz="+0100" policyid=39 sessionid=38501592 user="xx" srcip=xx srcport=64848 srcintf="port2" srcintfrole="lan" dstip=8.8.8.8 dstport=53 dstintf="wan1" dstintfrole="wan" proto=17 profile="xx" xid=43289 qname="xx" qtype="A" qtypeval=1 qclass="IN" ipaddr="1.1.1.1, 1.1.1.2" msg="Domain was allowed because it is in the domain-filter list" action="pass" domainfilteridx=1 domainfilterlist="xxx"
note, field ipaddr is processed as follows:
Error message:
Cannot index event publisher.Event
failed to parse field [dns.resolved_ip]
"reason":"'1.1.1.1, 1.1.1.2' is not an IP string literal."
The document here https://www.elastic.co/guide/en/ecs/current/ecs-dns.html says:
dns.resolved_ip | Array containing all IPs seen in answers.data. (snip) type: ip Note: this field should contain an array of values. example: ['10.10.10.10', '10.10.10.11']
I fixed this by adding a split processor to the utm pipeline as follows:
I can submit PR if required?
The text was updated successfully, but these errors were encountered: