-
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 iptables] Ubiquiti Firewall field [raw_date] not present as part of path [iptables.raw_date] #24878
Comments
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
It appears your original log message doesn't contain a timestamp
|
Thanks for the response. It appears I'm seeing two different issues:
|
Ok, so looking at the pipeline. It sets the |
Thanks a ton for this! |
PR is updated, should be good to go |
After manually applying the changes as of f7073f3, the dashboard appears to be fixed, but the raw_date issue is still showing. I'm not sure what (if any) the effect of this is yet, and it may have been fixed somewhere after the 7.12.0 release (it seems some hostname handling differs btw that and master). Oddly, for single-digit dates, it looks like there are 2 spaces btw the month and day (!?) in the Ubiquiti syslog - that might be an issue with the new grok pattern? (see log msg below) Thanks for fixing the dashboard! Here's the data for the raw_date issue...
{
"_index": "filebeat-7.12.0-2021.03.24-000001",
"_type": "_doc",
"_id": "-Uf_pHgBfuDoCTrwdmvp",
"_version": 1,
"_score": null,
"fields": {
"rule.id": [
"4000"
],
"event.category": [
"network"
],
"iptables.id": [
50931
],
"host.hostname": [
"net-rt-usg"
],
"iptables.input_device": [
"eth1"
],
"suricata.eve.src_port": [
45471
],
"iptables.tos": [
0
],
"destination.mac": [
"78:8a:20:42:d2:da"
],
"service.type": [
"iptables"
],
"hostname": [
"net-rt-usg"
],
"iptables.precedence_bits": [
0
],
"iptables.ubiquiti.rule_number": [
"4000"
],
"destination.geo.region_name": [
"Virginia"
],
"iptables.length": [
60
],
"source.ip": [
"192.168.1.33"
],
"agent.name": [
"srv-filebeat"
],
"network.community_id": [
"1:e/XuZhmcS7GbkDqM2S3x4Lze/4o="
],
"host.name": [
"net-rt-usg"
],
"event.kind": [
"event"
],
"log.original": [
"[WAN_OUT-4000-D]IN=eth1 OUT=eth0 MAC=78:8a:20:42:d2:da:4c:4e:cd:20:31:0d:04:00 SRC=192.168.1.33 DST=54.84.228.44 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=50931 DF PROTO=TCP SPT=45471 DPT=80 WINDOW=14600 RES=0x00 SYN URGP=0 "
],
"event.outcome": [
"failure"
],
"event.severity": [
4
],
"suricata.eve.proto": [
"tcp"
],
"rule.name": [
"WAN_OUT"
],
"destination.geo.continent_name": [
"North America"
],
"fileset.name": [
"log"
],
"iptables.ubiquiti.rule_set": [
"WAN_OUT"
],
"input.type": [
"syslog"
],
"iptables.tcp.flags": [
"SYN"
],
"agent.hostname": [
"srv-filebeat"
],
"tags": [
"iptables"
],
"destination.geo.city_name": [
"Ashburn"
],
"iptables.fragment_flags": [
"DF"
],
"agent.id": [
"74022d74-b4c2-4ec7-b749-12b85b2cd40d"
],
"source.port": [
45471
],
"ecs.version": [
"1.8.0"
],
"log.source.address": [
"172.44.0.1:43733"
],
"agent.version": [
"7.12.0"
],
"iptables.tcp.window": [
14600
],
"destination.geo.region_iso_code": [
"US-VA"
],
"destination.geo.country_name": [
"United States"
],
"iptables.output_device": [
"eth0"
],
"suricata.eve.src_ip": [
"192.168.1.33"
],
"destination.port": [
80
],
"process.program": [
"kernel"
],
"syslog.facility": [
0
],
"suricata.eve.alert.severity": [
4
],
"destination.geo.location": [
{
"coordinates": [
-77.4728,
39.0481
],
"type": "Point"
}
],
"suricata.eve.alert.action": [
"failure"
],
"agent.type": [
"filebeat"
],
"source.mac": [
"9c:8e:cd:20:31:0d"
],
"iptables.tcp.reserved_bits": [
0
],
"event.module": [
"iptables"
],
"related.ip": [
"192.168.1.33",
"54.84.228.44"
],
"network.type": [
"ipv4"
],
"event.timezone": [
"-04:00"
],
"syslog.priority": [
4
],
"destination.as.number": [
14618
],
"iptables.ether_type": [
2048
],
"destination.as.organization.name.text": [
"Amazon.com, Inc."
],
"destination.ip": [
"54.84.228.44"
],
"network.transport": [
"tcp"
],
"suricata.eve.dest_ip": [
"54.84.228.44"
],
"event.ingested": [
"2021-04-06T02:25:08.840Z"
],
"event.action": [
"drop"
],
"iptables.ttl": [
63
],
"@timestamp": [
"2021-04-06T02:25:07.000Z"
],
"syslog.severity_label": [
"Warning"
],
"destination.geo.country_iso_code": [
"US"
],
"suricata.eve.dest_port": [
80
],
"error.message": [
"field [raw_date] not present as part of path [iptables.raw_date]"
],
"event.type": [
"denied",
"connection"
],
"agent.ephemeral_id": [
"e437f6c6-aff9-43b0-b5ec-802756b2f5a7"
],
"syslog.facility_label": [
"kernel"
],
"event.dataset": [
"iptables.log"
],
"destination.as.organization.name": [
"Amazon.com, Inc."
]
},
"sort": [
1617675907000
]
} |
So the timestamp accounts for the extra space so that should be fine. What I don't understand is why the |
Also even though it gives an error, it appears to have parsed and set the date to |
I think I know. You're getting the raw log from the file but ur receiving the log via syslog. The syslog message doesn't have the extra stuff in front because its part of the syslog header. The text in the log file adds it. So that's why it's matching the 3rd grok pattern with no raw date. I just need to add a conditional to check for the field. |
@PrplHaz4 Try it now. |
No longer seeing that error, and everything looks ok to me @ dda2b8a Nice work - thanks! |
* #24878: Fix IPtables pipeline - fix dashboards - populate additional event.actions - move community_id processor to ingest node - set observer.name
* #24878: Fix IPtables pipeline - fix dashboards - populate additional event.actions - move community_id processor to ingest node - set observer.name (cherry picked from commit ddcf8f1) Co-authored-by: Alex Resnick <[email protected]>
This error received when processing events from an Ubiquiti Firewall Log. I'm pretty sure this problem was not present in 7.10.1, but have not been able to trace it back to where it started.
This causes data to be missing from the Kibana Ubiquiti Firewall Overview ECS dashboard.
Steps to Reproduce:
field [raw_date] not present as part of path [iptables.raw_date]
Configuration
Event
The text was updated successfully, but these errors were encountered: