Cherry-pick #21854 to 7.x: Fix syslog RFC 5424 parsing in CheckPoint module#21865
Merged
andrewkroh merged 1 commit intoelastic:7.xfrom Oct 27, 2020
Merged
Cherry-pick #21854 to 7.x: Fix syslog RFC 5424 parsing in CheckPoint module#21865andrewkroh merged 1 commit intoelastic:7.xfrom
andrewkroh merged 1 commit intoelastic:7.xfrom
Conversation
Change the input type in the CheckPoint module to `udp` from `syslog` so the syslog parsing happens in the ingest node pipeline rather than in the Filebeat syslog input that only support RFC 3164. (cherry picked from commit f2e161f)
Contributor
adriansr
approved these changes
Oct 26, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of PR #21854 to 7.x branch. Original message:
What does this PR do?
Change the input type in the CheckPoint module to
udpfromsyslogso the syslog parsing happens in the ingest node pipeline rather than
in the Filebeat syslog input that only support RFC 3164.
Why is it important?
The module was causing warnings while parsing data.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.How to test this PR locally
echo -n '<134>1 2020-03-29T13:19:21Z gw-da58d3 CheckPoint 1930 - [flags:"133440"; ifdir:"inbound"; ifname:"daemon"; loguid:"{0x5e80a059,0x2,0x6401a8c0,0x3c7878a}"; origin:"192.168.1.100"; sequencenum:"2"; version:"5"; product:"System Monitor"; sys_message::"installed Standard"]' | nc -4u -w1 localhost 9001Related issues
Logs
I manually tested the syslog parsing using the steps above and this is the event that landed in ES.
{ "checkpoint" : { "sys_message" : "installed Standard" }, "agent" : { "name" : "mac", "id" : "a92a047c-c6c6-4025-8933-1672a1b99ae1", "type" : "filebeat", "ephemeral_id" : "658300b1-a9a5-45b9-b9ab-14c09edcee16", "version" : "8.0.0" }, "log" : { "source" : { "address" : "127.0.0.1:60816" } }, "fileset" : { "name" : "firewall" }, "tags" : [ "checkpoint-firewall", "forwarded" ], "network" : { "direction" : "inbound" }, "input" : { "type" : "udp" }, "observer" : { "ingress" : { "interface" : { "name" : "daemon" } }, "product" : "System Monitor", "vendor" : "Checkpoint", "name" : "192.168.1.100", "type" : "firewall" }, "@timestamp" : "2020-03-29T13:19:21.000Z", "ecs" : { "version" : "1.6.0" }, "service" : { "type" : "checkpoint" }, "event" : { "sequence" : 2, "ingested" : "2020-10-15T13:41:59.409604500Z", "timezone" : "-04:00", "created" : "2020-10-15T13:41:55.836Z", "kind" : "event", "module" : "checkpoint", "id" : "{0x5e80a059,0x2,0x6401a8c0,0x3c7878a}", "category" : [ "network" ], "dataset" : "checkpoint.firewall" } }