question:
- Is it possible to set a specific variable when starting the logstash?
- 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?