# Logstash export variable

**URL:** <https://discuss.elastic.co/t/logstash-export-variable/218983>\
**Category:** Logstash\
**Created:** [February 12, 2020, 1:02pm UTC](https://discuss.elastic.co/t/logstash-export-variable/218983 "2020-02-12T13:02:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vivek_srivastava/32/61988_2.png) [@Vivek\_Srivastava](https://discuss.elastic.co/u/Vivek_Srivastava)\
**Post date:** [February 12, 2020, 1:02pm UTC](https://discuss.elastic.co/t/logstash-export-variable/218983/1 "2020-02-12T13:02:37Z")

</div>

I have one property file where I have mentioned the HOME path. I want to input this property file in logstash input and then use it in the filter.

app.properties:

export HOME="C:/Users/ankitamishra2/Desktop/Elastic\_v1/sources/log/\*.txt"

logstash.conf:  
input {

```
        file {

        type => "text"

        path => "${HOME}"

                                start_position => "beginning"

                                sincedb_path => "C:/Users/ankitamishra2/Desktop/Elastic_v1/sources/sincedb/logdb/sincedb-access"

                                stat_interval => 1

                                codec => multiline {

                                pattern => "^\s"

                                what => "previous"

                                }

                    }

```

output {  
stdout {  
codec =\> rubydebug  
}  
}

Any idea?

---

<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:** [March 11, 2020, 1:12pm UTC](https://discuss.elastic.co/t/logstash-export-variable/218983/2 "2020-03-11T13:12:12Z")

</div>

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