# Can logstash parse same type of multiple log files?

**URL:** <https://discuss.elastic.co/t/can-logstash-parse-same-type-of-multiple-log-files/268024>\
**Category:** Logstash\
**Created:** [March 22, 2021, 11:10pm UTC](https://discuss.elastic.co/t/can-logstash-parse-same-type-of-multiple-log-files/268024 "2021-03-22T23:10:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sourabhjain104](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@sourabhjain104](https://discuss.elastic.co/u/sourabhjain104)\
**Post date:** [March 22, 2021, 11:10pm UTC](https://discuss.elastic.co/t/can-logstash-parse-same-type-of-multiple-log-files/268024/1 "2021-03-22T23:10:36Z")

</div>

Hello,

I have a question regarding the multiple log files (of similar type) parsing by logstash.  
Scenario :-  
My application generate log files every day,(2 log files in a day) by the name of intranet-YYYY-MM-DD-PORT.log like below:-

intranet-2021-02-23-8400.log  
intranet-2021-02-23-8401.log

All these logs are generate in a folder.

My need is to parse these logs files every day to send it to elastic and prepare the graphs/visualization.

Basically from the logs I want to know how many error per day application is generating, how much time application is taking to restart every day etc....

Any help will be highly appreciated.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [March 23, 2021, 12:12am UTC](https://discuss.elastic.co/t/can-logstash-parse-same-type-of-multiple-log-files/268024/2 "2021-03-23T00:12:43Z")

</div>

I am not sure what you are asking.  
But also consider using filebeat.  
Cheers!

---

<div class="post-metadata">

**Author:** ![sourabhjain104](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@sourabhjain104](https://discuss.elastic.co/u/sourabhjain104)\
**Post date:** [March 23, 2021, 6:37am UTC](https://discuss.elastic.co/t/can-logstash-parse-same-type-of-multiple-log-files/268024/3 "2021-03-23T06:37:59Z")

</div>

Hello AClerk,  
Thanks for your reply.  
My need is that I want to inject/push logs data every day from the log folder to elasticsearch and based on daily log data I want to create visualization.  
For the moment I have C:\ELK\intralogs where I place all the logs like below

## intranet-2021-02-20-8400 intranet-2021-02-21-8400 intranet-2021-02-22-8400 intranet-2021-02-23-8400 intranet-2021-02-24-8400

- 
- 

intranet-2021-02-28-8400

When I execute logstash it just ready & parse only one log file (ie intranet-2021-02-20-8400).  
Just to let you know I created an index pattern where I I just see the data from only one log ( for example intranet-2021-02-20-8400)  
So my question is how to parse and send all the log files on daily basis to elasticsearch so that my index pattern also keeps updating with latest logs.?

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [March 24, 2021, 10:30pm UTC](https://discuss.elastic.co/t/can-logstash-parse-same-type-of-multiple-log-files/268024/4 "2021-03-24T22:30:08Z")

</div>

As I wrote,  
I am not sure about logstash. But with filebeat, you can achieve your solution easily.  
Thanks

---

<div class="post-metadata">

**Author:** ![sourabhjain104](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@sourabhjain104](https://discuss.elastic.co/u/sourabhjain104)\
**Post date:** [March 25, 2021, 4:40pm UTC](https://discuss.elastic.co/t/can-logstash-parse-same-type-of-multiple-log-files/268024/5 "2021-03-25T16:40:11Z")

</div>

Thanks A Clerk.

---

<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:** [April 22, 2021, 4:40pm UTC](https://discuss.elastic.co/t/can-logstash-parse-same-type-of-multiple-log-files/268024/6 "2021-04-22T16:40:34Z")

</div>

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