Hello,
I have a configuration file with multiple plugins. I want to disable all plugin and run 1 plugin for some use cases...How can I do that.
My config example-
input {
http_poller {
urls => {
api1=> {
method => "POST"
url => "url1"
headers => {
"Content-Type" => "application/json"
}
}
}
request_timeout => 120
schedule => {every => "30m"}
codec => "json"
tags => ["api1"]
}
http_poller {
urls => {
api2=> {
method => "POST"
url => "url2"
headers => {
"Content-Type" => "application/json"
}
}
}
request_timeout => 120
schedule => {every => "30m"}
codec => "json"
tags => ["api2"]
}
}
output{
if "api1" in [tags]
{
elasticsearch {
hosts => ["https://localhost:9200"]
user => "user"
password => "password"
ssl => false
ssl_certificate_verification => false
index => "index1"
}
}
if "api2" in [tags]
{
elasticsearch {
hosts => ["https://localhost:9200"]
user => "user"
password => "password"
ssl => false
ssl_certificate_verification => false
index => "index2"
}
}
}
suppose, I want to run api1 input and output and not api2 input and output...How can I disable api2 plugins..