Skip to content

Commit

Permalink
move to debug pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ivukotic committed Dec 14, 2023
1 parent 28d0042 commit 6e36973
Show file tree
Hide file tree
Showing 5 changed files with 1,772 additions and 483 deletions.
10 changes: 2 additions & 8 deletions configs/es-output.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@ input { pipeline { address => "es-output" } }

output {



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

if "_jsonparsefailure" in [tags] {
file {
path => "/var/log/logstash/json_parse_failure.txt"
}
Expand Down
20 changes: 20 additions & 0 deletions configs/ps-debug.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
input {
http {
host => "0.0.0.0"
port => "8080"
}
}


output {
if [test][type]=="trace" or [test][type]=="latencybg" or [test][type]=="throughput" or [test][type]=="rtt"{
file{
path => "/var/log/logstash/correct_%{[test][type]}.json"
}
else {
file{
path => "/var/log/logstash/else.json"
}
}

}
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 6e36973

Please sign in to comment.