Is it possible to set a specific variable when starting the logstash?

question:

  1. Is it possible to set a specific variable when starting the logstash?
  2. If 1 is possible, Can I run above function on conditional?

problem:

I am putting data into Elasticsearch through a logstash.
In the logstash, i need to add fields according to certain conditions, which are stored in oracle.
I'm worried that if I get the data through jdbc from input every time, it will be overloaded.

So I want to get the information from oracle once when executing the logstash and
set the value to a variable to use in the filter.
Is it possible?

If I add a variable to $LS_HOME/config/start.options, can it be used in a conf file?

If possible, can I enable the ability to retrieve information from oracle according to conf?
For example, i want to enable the condition when i run a.conf and disable it when i run b.conf.
Is it possible?

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