We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
input { generator { lines => [ "1.0.0.0", "0.0.0.0" ] count => 1 } } filter { dissect { mapping => { "message" => "%{octet_1}.%{octet_2}.%{octet_3}.%{octet_4}" } convert_datatype => { "octet_1" => "int" "octet_2" => "int" "octet_3" => "int" "octet_4" => "int" } } if ([octet_1] != 0) { #add field 'TRUE' if 'octet_1' is not zero mutate { add_field => { "TRUE" => "Get True" } } } else { #add field 'FALSE' if 'octet_1' is zero mutate { add_field => { "FALSE" => "Get False" } } } } output { stdout { codec => rubydebug } }
{ "TRUE" => "Get True", "octet_1" => 1, "octet_3" => 0, "octet_2" => 0, "octet_4" => 0, "message" => "1.0.0.0" } { "FALSE" => "Get False", "octet_1" => 0, "octet_3" => 0, "octet_2" => 0, "octet_4" => 0, "message" => "0.0.0.0" }
{ "TRUE" => "Get True", "octet_1" => 1, "octet_3" => 0, "octet_2" => 0, "octet_4" => 0, "message" => "1.0.0.0" } { ""TRUE" => "Get True", "octet_1" => 0, "octet_3" => 0, "octet_2" => 0, "octet_4" => 0, "message" => "0.0.0.0" }
pipeline.java_execution
The text was updated successfully, but these errors were encountered:
No branches or pull requests
pipeline.java_execution
setting in the /etc/logstash/logstash.yml file must be enabled (value is true)The text was updated successfully, but these errors were encountered: