I have a configuration file with http_poller plugins, where I have some scheduler which on the given schedule pull the data and enter it into my elastic db.
But to manually run lagstash instantly, What I have to do is reschdule the scheduler to the current time in my config file, then stop the auto service and then run the logstash file from command prompt.
What I want is, is there a way that without interrupting the config file schedule and without stopping the auto service I can run the configuration instantly???
You can run multiple copies of logstash provided they use different data directories. If you want to run the task immediately then instead of using a cronline use schedule => "at now".
schedule => "at now" is not working.. giving an error....
input {
http_poller {
# This setting must be a hash
# This field must contain an even number of items, got 1
schedule => "at now"
...
}
}
[2023-02-27T12:37:02,556][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"Java::JavaLang::IllegalStateException", :message=>"Unable to configure plugins: (ConfigurationError) Something is wrong with your configuration.",
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.