Configuration Logstash Output
Logstash 구성
실습 환경 구성
Logstash 설치
실습조건
실습을 위한 설정
Last updated
Last updated
input {
tcp {
port => 3000
codec => json
}
}
output {
file {
path => "/tmp/test_pipeline_logstash.log"
codec => rubydebug
}
stdout {
codec => json
}
}echo "{\"Hello\":\"Logstash\"}" | nc 127.0.0.1 3000tail -F /tmp/test_pipeling_logstash.logroot@ubuntu-focal:~# tail -F /tmp/test_pipeline_logstash.log
tail: cannot open '/tmp/test_pipeline_logstash.log' for reading: No such file or directory
tail: '/tmp/test_pipeline_logstash.log' has appeared; following new file
{
"@version" => "1",
"@timestamp" => 2023-02-02T08:55:35.950093170Z,
"Hello" => "Logstash"
}