Hello team,
input{
file {
path => "/tmp/date.log"
start_position => beginning
sincedb_path => "/dev/null"
}
}
filter {}
output {
exec { command => "bash /tmp/script.sh" }
stdout{codec => rubydebug}
}
Trying to use output exec plugin to execute a bash script.
Script.sh contains below command
bin/logstash --debug -f /home/gprasad9/Data/logstash_exec/tcp.conf --path.data tmp/sample2 >>nohup1.out &
script will trigger another pipeline.
tcp.conf details as below.
input {
tcp {
port => 6045
}
}
filter {}
output {
stdout{codec => rubydebug}
}
While the first logstash works fine, based on a trigger from first I need another pipeline to start. second pipeline is failing with below error, please suggest.
[ERROR] 2020-06-25 20:38:01.166 [main] Logstash - org.jruby.exceptions.StandardError: (GemNotFound) Could not find belzebuth-0.2.3 in any of the sources