input {
stdin {
}
}
output {
stdout {
codec => rubydebug
}
}
/usr/share/logstash/bin/logstash -f test.conf
input {
stdin {
codec => json
}
}
output {
stdout {
codec => rubydebug
}
}
/usr/share/logstash/bin/logstash -f jsontest.conf
input {
stdin {
codec => json
}
}
output {
stdout {
codec => rubydebug
}
file {
path => "/tmp/out.txt"
}
}
/usr/share/logstash/bin/logstash -f file_out_test.conf
input {
stdin {
codec => json
}
http {
host => "127.0.0.1"
port => 8080
}
}
output {
stdout {
codec => rubydebug
}
file {
path => "/tmp/http_out.txt"
}
}
/usr/share/logstash/bin/logstash -f http_input_test.conf
input {
stdin {
codec => json
}
http {
host => "127.0.0.1"
port => 8080
}
}
filter {
mutate {
convert => { "quantity" => "integer" }
}
}
output {
stdout {
codec => rubydebug
}
file {
path => "/tmp/filter_out.txt"
}
}