Skip to content
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

Parse error on ICMP (and probably other non IP protocols) #34

Open
tparsa opened this issue Dec 5, 2021 · 0 comments
Open

Parse error on ICMP (and probably other non IP protocols) #34

tparsa opened this issue Dec 5, 2021 · 0 comments

Comments

@tparsa
Copy link

tparsa commented Dec 5, 2021

{"level":"error","timestamp":"2021-12-05T14:45:02.006Z","caller":"drop/parser.go:78","msg":"Cannot parse the log line","log":"2021-12-05T14:44:59.341406+00:00 node-10 kernel: [2276706.763083] calico-packet: IN=calid2a5761e0a8 OUT=caliec92613fa1b MAC=ee:ee:ee:ee:ee:ee:96:a1:cb:af:30:69:08:00 SRC=10.2.118.254 DST=10.2.118.201 LEN=84 TOS=0x00 PREC=0x00 TTL=63 ID=6362 DF PROTO=ICMP TYPE=8 CODE=0 ID=92 SEQ=6 ","error":"Missing field=SPT","stacktrace":"github.com/box/kube-iptables-tailer/drop.RunParsing\n\t/go/src/github.com/box/kube-iptables-tailer/drop/parser.go:78\nmain.startParsing\n\t/go/src/github.com/box/kube-iptables-tailer/main.go:95"}

Hello,
As provided by log in this line and this line the parser tries to get SPT DPT from log which is not available in non IP protocols. Which leads to no metrics and no events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant