# Ignore\_inactive does not work in filebeat with filestream config type (filebeat version:8.1.0)

**URL:** <https://discuss.elastic.co/t/ignore-inactive-does-not-work-in-filebeat-with-filestream-config-type-filebeat-version-8-1-0/300410>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 23, 2022, 6:45am UTC](https://discuss.elastic.co/t/ignore-inactive-does-not-work-in-filebeat-with-filestream-config-type-filebeat-version-8-1-0/300410 "2022-03-23T06:45:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BinGuoGuo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/binguoguo/32/103394_2.png) [@BinGuoGuo](https://discuss.elastic.co/u/BinGuoGuo)\
**Post date:** [March 23, 2022, 6:45am UTC](https://discuss.elastic.co/t/ignore-inactive-does-not-work-in-filebeat-with-filestream-config-type-filebeat-version-8-1-0/300410/1 "2022-03-23T06:45:31Z")

</div>

When I use the filestream type instead of the log type, filebeat always reads the entire log file from the beginning.

```auto
- type: filestream
  id: test_id
  enable: true
  paths:
    - "/usr/share/filebeat/inputs.d/*.log"
  parsers:
    - multiline:
        type: pattern
        pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
        negate: true
        match: after
  ignore_inactive: since_first_start

```

No matter of using `since_first_start` or `since_last_start`, it doesn't work.

But when I use log config type with `tail_files:true`, it works normally.

```auto
- type: log
  paths:
    - "/usr/share/filebeat/inputs.d/*.log"
  multiline:
    type: pattern
    pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
    negate: true
    match: after
  enable: true
  tail_files: true

```

So my question is, how can I configure the filestream type so that filebeat doesn't read my log file from scratch?

Thanks to everyone who can solve it . 🤣

---

<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 20, 2022, 8:45am UTC](https://discuss.elastic.co/t/ignore-inactive-does-not-work-in-filebeat-with-filestream-config-type-filebeat-version-8-1-0/300410/2 "2022-04-20T08:45:42Z")

</div>

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