mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- Set input thread names to "<" followed by the plugin name
- Set output thread names to ">" followed by the plugin name - Set filter worker threads names to "|" followed by "worker.N" where N is the worker number.
This commit is contained in:
parent
e9953458d9
commit
f94fa34f38
1 changed files with 3 additions and 3 deletions
|
@ -702,7 +702,7 @@ class LogStash::Agent
|
|||
|
||||
private
|
||||
def run_input(input, queue)
|
||||
LogStash::Util::set_thread_name("input|#{input.to_s}")
|
||||
LogStash::Util::set_thread_name("<#{input.class.config_name}")
|
||||
input.logger = @logger
|
||||
@plugin_setup_mutex.synchronize { input.register }
|
||||
@logger.info("Input registered", :plugin => input)
|
||||
|
@ -734,7 +734,7 @@ class LogStash::Agent
|
|||
# Run a filter thread
|
||||
public
|
||||
def run_filter(filterworker, index, output_queue)
|
||||
LogStash::Util::set_thread_name("filter|worker|#{index}")
|
||||
LogStash::Util::set_thread_name("|worker.#{index}")
|
||||
filterworker.run
|
||||
@logger.warn("Filter worker shutting down", :index => index)
|
||||
|
||||
|
@ -744,7 +744,7 @@ class LogStash::Agent
|
|||
|
||||
# TODO(sissel): Factor this into an 'outputworker'
|
||||
def run_output(output, queue)
|
||||
LogStash::Util::set_thread_name("output|#{output.to_s}")
|
||||
LogStash::Util::set_thread_name(">#{output.class.config_name}")
|
||||
output.logger = @logger
|
||||
@plugin_setup_mutex.synchronize { output.register }
|
||||
@logger.info("Output registered", :plugin => output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue