# LOGSTASH DISCOVER FILES EACH 3 HOURS APROX

**URL:** <https://discuss.elastic.co/t/logstash-discover-files-each-3-hours-aprox/306186>\
**Category:** Logstash\
**Created:** [June 2, 2022, 6:00am UTC](https://discuss.elastic.co/t/logstash-discover-files-each-3-hours-aprox/306186 "2022-06-02T06:00:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Lopez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_lopez/32/50639_2.png) [@Daniel\_Lopez](https://discuss.elastic.co/u/Daniel_Lopez)\
**Post date:** [June 2, 2022, 6:00am UTC](https://discuss.elastic.co/t/logstash-discover-files-each-3-hours-aprox/306186/1 "2022-06-02T06:00:52Z")

</div>

Hi!

I'm started a new pipeline for reading xml from a cifs mounted unit from a Windows Server in my centos server, the issue I have is that logstash reads the unit each 3 hours and I don't know why, I'm indexing old files, and when i started logstash 3 hours later start to read about 25K files and then stop discovering files for 3 hours, and then start to read about 25K files and then stop again discovering, I couldn't find anything relevant and logstash log.

 ![issue](https://us1.discourse-cdn.com/elastic/original/3X/c/8/c8b113ae40995bfe147b9c6ebf7c301b095faa5e.png)

My config file:

```auto
input {
	file {
   mode => "read"
   start_position => "beginning"
   #close_older => "0"
   #ignore_older =>"0"
    path => "/logs/xxxx/**/*.xml" 
    sincedb_path => "/home/xxxx/xxxxx"
	file_completed_action => "log"
	file_completed_log_path => "/home/xxx/xxxx.txt"
    codec => 
    multiline {
    pattern => "<xxxx>"
    negate => true
    what => "previous"
     } } 
    
    	file {
   mode => "read"
   start_position => "beginning"
    path => "/logs/xxx/**/*.xml"
    #close_older => "0"
   #ignore_older =>"0" 
    sincedb_path => "/home/xxx/xxxx"
	file_completed_action => "log"
	file_completed_log_path => "/home/xxxx/xxxx.txt"
    codec => 
    multiline {
    pattern => "<xxxxx>"
    negate => true
    what => "previous"
     }}}

```

Could anyone help me with this?

BE

---

<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:** [June 30, 2022, 6:01am UTC](https://discuss.elastic.co/t/logstash-discover-files-each-3-hours-aprox/306186/2 "2022-06-30T06:01:41Z")

</div>

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