# How to run Cloud Logstash Pipeline

**URL:** <https://discuss.elastic.co/t/how-to-run-cloud-logstash-pipeline/231906>\
**Category:** Logstash\
**Created:** [May 10, 2020, 8:33pm UTC](https://discuss.elastic.co/t/how-to-run-cloud-logstash-pipeline/231906 "2020-05-10T20:33:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holguinmora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/holguinmora/32/46821_2.png) [@Holguinmora](https://discuss.elastic.co/u/Holguinmora)\
**Post date:** [May 10, 2020, 8:33pm UTC](https://discuss.elastic.co/t/how-to-run-cloud-logstash-pipeline/231906/1 "2020-05-10T20:33:36Z")

</div>

Hi

I´m trying to run a cloud logstash pipeline that has the next code to start working with the mail filters but I have not been able to find code to try it inside the pipeline or how to run it outside of the pipeline

On the image the location or place where I´m putting the code.

Any ideas?

```auto
#email_log.conf
input {
imap {
 host => "imap.gmail.com"
 password => "XXXXX"
 user => "alejandrotrading1@gmail.com"
# check_interval => 10
# folder => "Inbox"
 }
}

output {
 elasticsearch {
 index => "emails"
 document_type => "email"}
}

```

 ![Captura de Pantalla 2020-05-10 a la(s) 3.31.15 p. m.](https://us1.discourse-cdn.com/elastic/original/3X/a/a/aafbd2fde8168c08e6598d4acdc05fbc0cc3e86c.png)

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [May 10, 2020, 10:56pm UTC](https://discuss.elastic.co/t/how-to-run-cloud-logstash-pipeline/231906/2 "2020-05-10T22:56:55Z")

</div>

Hello @Holguinmora

You can create a Logstash pipeline using the Logstash Centralized Management, but you then need a Logstash instance running somewhere (your computer, a server or a cloud provider) which reads the configuration from your Elastic Cloud instance.

# How to configure Logstash to use Central Management?

You can follow the steps detailed in [our documentation](https://www.elastic.co/guide/en/logstash/current/configuring-centralized-pipelines.html#configuration-management-settings).

Some comments:

- The `elasticsearch` output must define the target hosts and credentials. See [more here](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html).

```auto
elasticsearch {
  cloud_id => ...
  cloud_auth => "user:pass"
  index => "emails"
  document_type => "email"
}

```

- The Logstash instance must have the following settings:

```auto
xpack.management.enabled: true
xpack.management.elasticsearch.cloud_id: ...
xpack.management.elasticsearch.cloud_auth: "user:pass"
xpack.management.logstash.poll_interval: 5s
xpack.management.pipeline.id: ["correo1", ...]

```

---

<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 7, 2020, 11:07pm UTC](https://discuss.elastic.co/t/how-to-run-cloud-logstash-pipeline/231906/3 "2020-06-07T23:07:10Z")

</div>

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