# Newbie in Logstash need suggestion on setting up Logstash on GCP

**URL:** <https://discuss.elastic.co/t/newbie-in-logstash-need-suggestion-on-setting-up-logstash-on-gcp/199710>\
**Category:** Logstash\
**Created:** [September 16, 2019, 6:26pm UTC](https://discuss.elastic.co/t/newbie-in-logstash-need-suggestion-on-setting-up-logstash-on-gcp/199710 "2019-09-16T18:26:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Goyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_goyal/32/46306_2.png) [@Rahul\_Goyal](https://discuss.elastic.co/u/Rahul_Goyal)\
**Post date:** [September 16, 2019, 6:26pm UTC](https://discuss.elastic.co/t/newbie-in-logstash-need-suggestion-on-setting-up-logstash-on-gcp/199710/1 "2019-09-16T18:26:33Z")

</div>

Hey,

I have just started using Logstash, and need some guidelines and best practices of running a Logstash pipeline on production.  
I am familiar with the pipeline.yml and logstash.yml and also have written a basic configuration file. To connect Kafka and Elasticsearch and have explored various configuration options.

I need help with the below question:

1. Where do you actually keep the config files?  
a. Should they be present in Github and the pipeline.yml should read from there or  
directly on the machine where the logstash is running.  
b. Or use docker and make it a part of the image.  
c. Any other suggestions
2. Are environment variables the best option to store values like,  
a. Kafka/Elasticsearch connection string  
b. Topic, Index names

---

<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:** [October 14, 2019, 6:26pm UTC](https://discuss.elastic.co/t/newbie-in-logstash-need-suggestion-on-setting-up-logstash-on-gcp/199710/2 "2019-10-14T18:26:34Z")

</div>

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