# How to set variables in config logstash

**URL:** <https://discuss.elastic.co/t/how-to-set-variables-in-config-logstash/115935>\
**Category:** Logstash\
**Created:** [January 17, 2018, 6:35pm UTC](https://discuss.elastic.co/t/how-to-set-variables-in-config-logstash/115935 "2018-01-17T18:35:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgarcia](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@cgarcia](https://discuss.elastic.co/u/cgarcia)\
**Post date:** [January 17, 2018, 6:35pm UTC](https://discuss.elastic.co/t/how-to-set-variables-in-config-logstash/115935/1 "2018-01-17T18:35:38Z")

</div>

Hi Expert

I need your help.  
How to set this variables in the config of logstash?

| ELASTIFLOW\_NETFLOW\_PORT | The UDP port to listen on for Netflow messages | 2055 |
| --- | --- | --- |
| ELASTIFLOW\_ES\_HOST | The Elasticsearch host to which the output will send data | 127.0.0.1:9200 |
| ELASTIFLOW\_ES\_USER | The password for the connection to Elasticsearch | elastic |
| ELASTIFLOW\_ES\_PASSWD | The username for the connection to Elasticsearch | changeme |
| ELASTIFLOW\_GEOIP\_DB\_PATH | The path where the GeoIP DBs are located | /etc/logstash/geoipdbs |
| ELASTIFLOW\_DICT\_PATH | The path where the dictionary files are located | /etc/logstash/dictionaries |
| ELASTIFLOW\_TEMPLATE\_PATH | The path to where index templates are located | /etc/logstash/templates |

I was try with diferente sintaxis, by, no work logstash services.

the reference to this questions is:  
[github.com/robcowart/elastiflow](http://github.com/robcowart/elastiflow)

thanks in advanced

---

<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:** [February 14, 2018, 6:35pm UTC](https://discuss.elastic.co/t/how-to-set-variables-in-config-logstash/115935/2 "2018-02-14T18:35:39Z")

</div>

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