# Logstash behaviour

**URL:** <https://discuss.elastic.co/t/logstash-behaviour/116912>\
**Category:** Logstash\
**Created:** [January 24, 2018, 6:53pm UTC](https://discuss.elastic.co/t/logstash-behaviour/116912 "2018-01-24T18:53:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAYALAKSHMI](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@JAYALAKSHMI](https://discuss.elastic.co/u/JAYALAKSHMI)\
**Post date:** [January 24, 2018, 6:53pm UTC](https://discuss.elastic.co/t/logstash-behaviour/116912/1 "2018-01-24T18:53:24Z")

</div>

I am loading the data into ES Cluster through logstash. If I Provide the path i.e)source path as the mentioned below.

Path: /Folder/Folder1/\*

How will Logstash behave if there are 5 files inside the folder1? Which one logstash will process first and which one last.

Is there a way to align the files based on which logstash will process?

Please suggest.

---

<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:** [January 25, 2018, 1:34pm UTC](https://discuss.elastic.co/t/logstash-behaviour/116912/2 "2018-01-25T13:34:18Z")

</div>

> Path: /Folder/Folder1/\*

In which file would you have this line? What kind of files are matched by this wildcard?

---

<div class="post-metadata">

**Author:** ![JAYALAKSHMI](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@JAYALAKSHMI](https://discuss.elastic.co/u/JAYALAKSHMI)\
**Post date:** [February 1, 2018, 11:06am UTC](https://discuss.elastic.co/t/logstash-behaviour/116912/3 "2018-02-01T11:06:37Z")

</div>

Logstash configuration while specifying the input path for the logstash. If I have given the path it will take the files inside the folder(Folder1).

Example:  
input {  
file {  
type =\> "json"  
path =\> "/app/data1/NDES/\*"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}

---

<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 1, 2018, 11:07am UTC](https://discuss.elastic.co/t/logstash-behaviour/116912/4 "2018-03-01T11:07:05Z")

</div>

Closed on March 1, 2018, 11:07am UTC

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