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

fix curly brackets in values #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content_pack.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
},
"source": {
"@type": "string",
"@value": "rule \"process TCP netfilter logs\"\nwhen\n contains(to_string($message.IP_HEADER_PROTO), \"TCP\")\nthen\n let message_field = to_string($message.message); \n let action = grok(pattern: \"%{NETFILTERTCPHEADER}\", value: message_field, only_named_captures: true);\n let action1 = key_value(to_string(action));\n set_fields(action1,\"TCP_HEADER_\");\n let field_replace = regex_replace(\"}\", to_string($message.TCP_HEADER_URGP), \"\");\n set_field(\"TCP_HEADER_URGP\", field_replace);\n set_field(\"pipeline\", \"netfilter TCP header parse\");\nend"
"@value": "rule \"process TCP netfilter logs\"\nwhen\n contains(to_string($message.IP_HEADER_PROTO), \"TCP\")\nthen\n let message_field = to_string($message.message); \n let action = grok(pattern: \"%{NETFILTERTCPHEADER}\", value: message_field, only_named_captures: true);\n let action1 = key_value(to_string(action.message));\n set_fields(action1,\"TCP_HEADER_\");\n set_field(\"pipeline\", \"netfilter TCP header parse\");\nend"
}
},
"constraints": [{
Expand Down Expand Up @@ -284,7 +284,7 @@
},
"source": {
"@type": "string",
"@value": "rule \"process UDP netfilter logs\"\nwhen\n contains(to_string($message.IP_HEADER_PROTO), \"UDP\")\nthen\n let message_field = to_string($message.message); \n let action = grok(pattern: \"%{NETFILTERUDPHEADER}\", value: message_field, only_named_captures: true);\n let action1 = key_value(to_string(action));\n set_fields(action1,\"UDP_HEADER_\");\n let field_replace = regex_replace(\"}\", to_string($message.UDP_HEADER_LEN), \"\");\n set_field(\"UDP_HEADER_LEN\", field_replace);\n set_field(\"pipeline\", \"netfilter UDP header parse\");\nend"
"@value": "rule \"process UDP netfilter logs\"\nwhen\n contains(to_string($message.IP_HEADER_PROTO), \"UDP\")\nthen\n let message_field = to_string($message.message); \n let action = grok(pattern: \"%{NETFILTERUDPHEADER}\", value: message_field, only_named_captures: true);\n let action1 = key_value(to_string(action.message));\n set_fields(action1,\"UDP_HEADER_\");\n set_field(\"pipeline\", \"netfilter UDP header parse\");\nend"
}
},
"constraints": [{
Expand Down