# Logstash Infinite Loop while indexing

**URL:** https://discuss.elastic.co/t/logstash-infinite-loop-while-indexing/276380
**Category:** Logstash
**Created:** [June 18, 2021, 11:17am UTC](https://discuss.elastic.co/t/logstash-infinite-loop-while-indexing/276380 "2021-06-18T11:17:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Adabi\_Raihan](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Adabi\_Raihan](https://discuss.elastic.co/u/Adabi_Raihan)
#### Post date: [June 18, 2021, 11:17am UTC](https://discuss.elastic.co/t/logstash-infinite-loop-while-indexing/276380/1 "2021-06-18T11:17:40Z")

</div>

Hi Everyone !,

So what I'm going to do is indexing .log data with grok using logstash, but in the middle of indexing, it's suddenly stopped. I am already using --debug flag to see what's going on, and it keeps loop this message

**[2021-06-18T17:55:39,974][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu**  
**[2021-06-18T17:55:40,131][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}**  
**[2021-06-18T17:55:40,131][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}**  
**[2021-06-18T17:55:41,099][DEBUG][org.logstash.execution.PeriodicFlush][main] Pushing flush onto pipeline.**

Here's my simple config file

```auto
input{
    file{
        path => ["E:/Belajar Ngoding/Elasticsearch/Hadoop.log"]
        start_position => "beginning"
        sincedb_path => "NUL"
    }
}
filter{
    grok{
        match => {"message" => [' %{DATESTAMP:Time} %{LOGLEVEL:logLevel} %{LOGLEVEL:logMain} {%GREEDYDATA:logMessage}'] }
    }
}
output{
    elasticsearch{
        hosts => "http://localhost:9200"
        index => "HadoopLog"

        user => "elastic"
        password => "sigh"
    }
    stdout{}
}

```

Can someone tell me what am i doing wrong ? Thanks 🙂

---

<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: [July 16, 2021, 11:18am UTC](https://discuss.elastic.co/t/logstash-infinite-loop-while-indexing/276380/2 "2021-07-16T11:18:24Z")

</div>

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