# How to disable a plugin in Logstash Configuration file

**URL:** <https://discuss.elastic.co/t/how-to-disable-a-plugin-in-logstash-configuration-file/333197>\
**Category:** Logstash\
**Created:** [May 11, 2023, 11:00am UTC](https://discuss.elastic.co/t/how-to-disable-a-plugin-in-logstash-configuration-file/333197 "2023-05-11T11:00:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakhshunda\_Noorein\_J](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakhshunda_noorein_j/32/99407_2.png) [@Rakhshunda\_Noorein\_J](https://discuss.elastic.co/u/Rakhshunda_Noorein_J)\
**Post date:** [May 11, 2023, 11:00am UTC](https://discuss.elastic.co/t/how-to-disable-a-plugin-in-logstash-configuration-file/333197/1 "2023-05-11T11:00:52Z")

</div>

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-

```auto
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..

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 8, 2023, 11:01am UTC](https://discuss.elastic.co/t/how-to-disable-a-plugin-in-logstash-configuration-file/333197/2 "2023-06-08T11:01:25Z")

</div>

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