Zeek logs not showing in OpenSearch #770
-
I have a Malcolm instance, and a probe reporting zeek logs from capture. Nothing is showing in the zeek logs of the OpenSearch dashboards.
It really looks like the logs are being dropped in logstash, but I'm not sure why. Am I missing something silly? In general, how is the _filebeat_zeek tag supposed to be imposed on the inputs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Looks like you've done a lot to debug, which is appreciated! I think you are on the right track with it expecting the tags, but here are some things we can do to confirm. First, for completeness, you're right that Malcolm's hedgehog sensor is applying a tag to its zeek logs via filebeat (see here). The list of tags Malcolm Zeek logstash pipeline it accepts are here and include:
For your use case, it shouldn't really matter which you use. Let's check with logstash on the Malcolm side to see if we can determine if they're being dropped or not: $ docker compose exec logstash curl -sSL -XGET http://localhost:9600/_node/stats/pipelines | jq -r '.. | .filters? // empty | .[] | objects | select (.events.in > 0) | [.id, .events.in, .events.out, .events.duration_in_millis] | join (";")' | sort -n -t ';' -k2,3 | grep -P "(mutate_filebeat_zeek_forward_noop|drop_not_filebeat_zeek)"
drop_not_filebeat_zeek;9;0;0
mutate_filebeat_zeek_forward_noop;2780;2780;92 That command grabs the pipeline stats from the running logstash instance and gives us the number of records in, the number of records out, and the execution milliseconds for each filter in the pipeline. We filter that for these:
If you see any going through the "forward" filter, then the problem is later down the line. If you see the "in" count on the "drop" filter increasing as you send events, then the problem is that it's missing a tag. If you don't see the count going up on either then it's more of a connection/plumbing issue we need to debug. |
Beta Was this translation helpful? Give feedback.
Looks like you've done a lot to debug, which is appreciated! I think you are on the right track with it expecting the tags, but here are some things we can do to confirm.
First, for completeness, you're right that Malcolm's hedgehog sensor is applying a tag to its zeek logs via filebeat (see here). The list of tags Malcolm Zeek logstash pipeline it accepts are here and include:
_filebeat_zeek
_filebeat_zeek_live
_filebeat_zeek_upload
_filebeat_zeek_hedgehog_live
_filebeat_zeek_malcolm_live
_filebeat_zeek_malcolm_upload
For your use case, it shouldn't really matter which you use.
Let's check with logstash on the Malcolm side to see if we can determine if they're being dropped or not: