We get very good log file in LS, but i want to mute this file logging and send the logging data directly to ES
I am using following configuration, but it is not working. It does not show anything in console and does not create index
input {
tcp {
host => localhost
port => 3456
codec => json
ssl_enable => false
}
}
filter {
date {
match => [ "timeMillis", "UNIX_MS" ]
}
}
I have updated the log4j.properties file like this in LS config folder
That said, I do not like the setup very much. You miss all the messages at startup, because the tcp input is not listening, and log4j appears not to buffer if the output is unavailable. I could easily see you missing messages during shutdown, because the input gets closed. (For example, if logstash crashes, you may miss the reason why.) Finally if you are sending the log of an instance back through the same instance that created them there could be weird cases where processing a message results in a message, and it goes in to an infinite loop (or even worse an exponential increase in volume). If you are going to do this I strongly recommend that you have a dedicated logstash instance (not a pipeline, an instance) that just feeds the tcp input into elasticsearch (a date filter should be OK ).
i run multiple pipeline, by using --path.data from the same instance and it does create different port for each pipeline like 9600,9601....
But with this port# 56570, it is difficult to identify the response is for which pipeline
That is the reason , i was asking for how to change the tcp response or extend the response by pipeline.id, so that can identify the log message is for which pipeline
i am using one pipeline whose input is tcp and output is ES
And multiple other pipelines to do logging of all the events to ES( from above pipeline). In ES i want to identify which logs events for which pipeline.
Tags may add other errors tags as well, so may not be useful. I am looking for ways to extended the response from tcp input
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.