出力結果は以下
{"message":"Feb 23 11:56:33 rhel8 logstash[10927]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.","tags":["messages","beats_input_codec_plain_applied"]}
outputのif文は以下
output {
if "filebeat" in [tags] {
file {
path => "/var/tmp/logstash/localhost1/filebeat.log"
}
}
else if "secure" in [tags] {
file {
path => "/var/tmp/logstash/localhost1/secure.log"
}
}
else if "messages" in [tags] {
file {
path => "/var/tmp/logstash/localhost1/messages.log"
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.