1] logstash.conf file Configuration
input {
tcp {
port => 4560
codec => json_lines
}
}
#filter {
# mutate {
# convert => { “wfExeTime” => “float” }
# }
#}
output{
elasticsearch {
hosts => [“localhost:9200”]
codec => json
index => “%{tag}-%{+yyyy.MM.dd}”
}
stdout {
codec => “rubydebug”
}
file {
path => “C:\opt\logstash-7.6.1\logs\logstash.log”
codec => json_lines
}
}