You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've written a grok pattern to parse Cisco Extended ACLs. Mostly this works fine, however for 0.2 % of my ACLs the resulting variable (grok_line = grok.match(line)) is None.
I included my script (parse_cisco_acl.py) as well as some example ACLs which fail to parse (infile.txt).
If you have any pointer how I can debug this myself I'll look into it.
Were you ever able to figure out your issue? I have a PyQt gui to help debug grok patterns that may help if you're still stuck on this.
no, it is still not working.
But you can check that our grok patterns are valid with the provided log lines (infile.txt) and our patterns (acl_patterns). We tested it as well with the https://grokconstructor.appspot.com/
I've written a grok pattern to parse Cisco Extended ACLs. Mostly this works fine, however for 0.2 % of my ACLs the resulting variable (
grok_line = grok.match(line)
) is None.I included my script (
parse_cisco_acl.py
) as well as some example ACLs which fail to parse (infile.txt
).If you have any pointer how I can debug this myself I'll look into it.
parse_cisco_acl.py:
infile.txt:
The text was updated successfully, but these errors were encountered: