# Duplicate file entries in registry file on system with RAID 5

**URL:** <https://discuss.elastic.co/t/duplicate-file-entries-in-registry-file-on-system-with-raid-5/272856>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 12, 2021, 9:55pm UTC](https://discuss.elastic.co/t/duplicate-file-entries-in-registry-file-on-system-with-raid-5/272856 "2021-05-12T21:55:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Misha\_Diordienko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/misha_diordienko/32/86508_2.png) [@Misha\_Diordienko](https://discuss.elastic.co/u/Misha_Diordienko)\
**Post date:** [May 12, 2021, 9:55pm UTC](https://discuss.elastic.co/t/duplicate-file-entries-in-registry-file-on-system-with-raid-5/272856/1 "2021-05-12T21:55:54Z")

</div>

Hi,

Debian 10 linux with software raid 5, 3 ssd disks:

```auto
    ARRAY /dev/md1 level=raid1 num-devices=3 metadata=0.90 UUID=6a96a1c6:818e4a81:5ca9666b:e9209fa3
    ARRAY /dev/md2 level=raid1 num-devices=3 metadata=0.90 UUID=89ed1650:8b88611a:5ca9666b:e9209fa3
    ARRAY /dev/md3 level=raid1 num-devices=3 metadata=1.2 name=10933001:swap UUID=f80f1c0e:b0d75aef:6332d0e8:e13ec433
    ARRAY /dev/md4 level=raid5 num-devices=3 metadata=1.2 name=10933001:tmp UUID=34cdef57:64a1b74a:3ac42e3d:7edf3ced
    ARRAY /dev/md5 level=raid5 num-devices=3 metadata=1.2 name=10933001:root UUID=9d39c71a:a6794054:b091bfce:c0abbaad

```

filebeat config:

```auto
    filebeat.registry.flush: 60s
    filebeat.shutdown_timeout: 10s
    filebeat.inputs:
      - type: log
        clean_inactive: 720h
        ignore_older: 48h
        close_inactive: 1h
        scan_frequency: 30s
        paths:
          - /var/www/app/web/storage/parsed/*/*/*/*/logstash.log
    output.logstash:
      hosts: ["10.32.20.33:5043"]

```

after server reboot i find, that filebeat duplicated some files in registry with different device ids and also with different offsets, example:

```auto
    {
    	"_key": "filebeat::logs::native::22151340-2429",
    	"offset": 6058887,
    	"ttl": 2592000000000000,
    	"type": "log",
    	"FileStateOS": {
    		"inode": 22151340,
    		"device": 2429
    	},
    	"id": "native::22151340-2429",
    	"prev_id": "",
    	"source": "/var/www/app/web/storage/parsed/2021/05/12/574/logstash.log",
    	"timestamp": [516275907982, 1620833672],
    	"identifier_name": "native"
    }, {
    	"_key": "filebeat::logs::native::22151340-2430",
    	"source": "/var/www/app/web/storage/parsed/2021/05/12/574/logstash.log",
    	"timestamp": [516035301277, 1620833673],
    	"identifier_name": "native",
    	"id": "native::22151340-2430",
    	"prev_id": "",
    	"offset": 165418997,
    	"ttl": 2592000000000000,
    	"type": "log",
    	"FileStateOS": {
    		"inode": 22151340,
    		"device": 2430
    	}
    }

```

how it's possible that same file, with same inodeId, but different deviceIds and offset appear in registry?

probably someone met such situation.

---

<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 9, 2021, 11:56pm UTC](https://discuss.elastic.co/t/duplicate-file-entries-in-registry-file-on-system-with-raid-5/272856/2 "2021-06-09T23:56:24Z")

</div>

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