# How to manage logstash deployments?

**URL:** <https://discuss.elastic.co/t/how-to-manage-logstash-deployments/44768>\
**Category:** Logstash\
**Created:** [March 17, 2016, 8:30pm UTC](https://discuss.elastic.co/t/how-to-manage-logstash-deployments/44768 "2016-03-17T20:30:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_P](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Joshua\_P](https://discuss.elastic.co/u/Joshua_P)\
**Post date:** [March 17, 2016, 8:30pm UTC](https://discuss.elastic.co/t/how-to-manage-logstash-deployments/44768/1 "2016-03-17T20:30:46Z")

</div>

What's the best way to manage multiple Logstash deployments?

I have a testing environment and a production environment and each has it's own configuration file pulling data from its respective data store and sending the data the respective elasticsearch cluster.

How are other people managing a scenario like this?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 17, 2016, 8:45pm UTC](https://discuss.elastic.co/t/how-to-manage-logstash-deployments/44768/2 "2016-03-17T20:45:12Z")

</div>

Any configuration management system that supports templating of configuration files should do. Ansible has worked great for me.

---

<div class="post-metadata">

**Author:** ![Joshua\_P](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Joshua\_P](https://discuss.elastic.co/u/Joshua_P)\
**Post date:** [March 17, 2016, 9:18pm UTC](https://discuss.elastic.co/t/how-to-manage-logstash-deployments/44768/3 "2016-03-17T21:18:33Z")

</div>

I've heard good things about Ansible. How does that compare to something like Puppet or Chef? Or are they not mutually exclusive?

We're not invested in any deployment system at the moment. We're using [Atlassian Bamboo](https://www.atlassian.com/software/bamboo) to kind of handle continuous integration, but it's not perfect yet. Could I integrate Ansible with that?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 18, 2016, 6:55am UTC](https://discuss.elastic.co/t/how-to-manage-logstash-deployments/44768/4 "2016-03-18T06:55:16Z")

</div>

> I've heard good things about Ansible. How does that compare to something like Puppet or Chef? Or are they not mutually exclusive?

Conceptually they're the same AFAIK. Ansible is primarily agent-less which is both good and bad.

> We're using Atlassian Bamboo to kind of handle continuous integration, but it's not perfect yet. Could I integrate Ansible with that?

Sure.

---

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [March 18, 2016, 11:20am UTC](https://discuss.elastic.co/t/how-to-manage-logstash-deployments/44768/5 "2016-03-18T11:20:41Z")

</div>

You could consider Docker, there are official images here:

[https://hub.docker.com/\_/logstash/](https://hub.docker.com/_/logstash/)

In my company we are using logstash with a queue, so we spawn Docker containers according the queue size.

Running logstash is just 1 line:

> docker run -ti -v $PWD/logstash.conf:/opt/logstash.conf logstash:2.2 /opt/logstash/bin/logstash agent --debug -f /opt/logstash.conf

---

<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:** [July 6, 2017, 5:06am UTC](https://discuss.elastic.co/t/how-to-manage-logstash-deployments/44768/6 "2017-07-06T05:06:27Z")

</div>

Closed on July 6, 2017, 5:06am UTC


