# Ignore\_inactive does not work in filebeat with filestream config type

**URL:** <https://discuss.elastic.co/t/ignore-inactive-does-not-work-in-filebeat-with-filestream-config-type/348822>\
**Category:** Elasticsearch\
**Created:** [December 7, 2023, 3:13pm UTC](https://discuss.elastic.co/t/ignore-inactive-does-not-work-in-filebeat-with-filestream-config-type/348822 "2023-12-07T15:13:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josepcorrea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/josepcorrea/32/128298_2.png) [@josepcorrea](https://discuss.elastic.co/u/josepcorrea)\
**Post date:** [December 7, 2023, 3:13pm UTC](https://discuss.elastic.co/t/ignore-inactive-does-not-work-in-filebeat-with-filestream-config-type/348822/1 "2023-12-07T15:13:10Z")

</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:** [January 4, 2024, 3:14pm UTC](https://discuss.elastic.co/t/ignore-inactive-does-not-work-in-filebeat-with-filestream-config-type/348822/2 "2024-01-04T15:14:07Z")

</div>

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