Skip to content

Commit

Permalink
Remove commented out code and update field
Browse files Browse the repository at this point in the history
conversion in ps-rtt.conf
  • Loading branch information
ivukotic committed Dec 14, 2023
1 parent ade5565 commit d5bd7a0
Show file tree
Hide file tree
Showing 3 changed files with 612 additions and 7 deletions.
12 changes: 6 additions & 6 deletions configs/es-output.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ input { pipeline { address => "es-output" } }

output {



# stdout {
# codec => json
# }
if "ps_rtt_write" in [@metadata][type]{
stdout {
codec => json
}
}

# stdout {
# codec => json
# }

if "_jsonparsefailure" in [tags] {
else if "_jsonparsefailure" in [tags] {
file {
path => "/var/log/logstash/json_parse_failure.txt"
}
Expand Down
2 changes: 1 addition & 1 deletion configs/ps-rtt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ filter {

if ![tags] { # for problematic things don't remove fields
mutate{
remove_field => ["type", "test", "result", "@timestamp"]
# remove_field => ["type", "test", "result", "@timestamp"]
convert => { "ipv6" => "boolean" }
}
}
Expand Down
Loading

0 comments on commit d5bd7a0

Please sign in to comment.