Logstash log4j configuration (log input id)

Hello,
I have pipelines with dozen of inputs/filters
For some jdbc input, i meet errors :

[2018-03-19T13:19:00,524][ERROR][logstash.inputs.jdbc ] Unable to connect to database. Tried 1 times {:error_message=>"Java::JavaSql::SQLRecoverableException: IO Error: The Network Adapter could not establish the connection"}

Every input{} in the logstash conf files have id

input { jdbc {id => "my_input_id"

Is there a way to configure log4j to have this id shown in logstash log
Something like

[2018-03-19T13:19:00,524][ERROR][logstash.inputs.jdbc my_input_id ]....

I've dug in logstash sources. If I'm not mistaken, its not possible.
I will try to implement it.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.