Skip to content

Commit

Permalink
json for message
Browse files Browse the repository at this point in the history
  • Loading branch information
ivukotic committed Oct 4, 2024
1 parent 76d9a27 commit 1b8fc8b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions configs/pilot_log.conf
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
input {
http {
# host => "0.0.0.0"
port => "8081"
# codec => json
}
}

filter {

mutate {
remove_field => [ "headers" ]
remove_field => [ "headers", "type" ]
}

# json {
# source => "message"
# remove_field => [ "message" ]
# remove_field => [ "port" ]
# tag_on_failure => ["_jsonparsefailure"]
# }
json {
source => "message"
remove_field => [ "message" ]
remove_field => [ "port" ]
tag_on_failure => ["_jsonparsefailure"]
}

# ruby { path => "/usr/share/logstash/filters/reformat.rb" }

Expand Down

0 comments on commit 1b8fc8b

Please sign in to comment.