# Logstash file input plugin picks different files other than specified path

**URL:** <https://discuss.elastic.co/t/logstash-file-input-plugin-picks-different-files-other-than-specified-path/332380>\
**Category:** Logstash\
**Created:** [May 3, 2023, 6:42am UTC](https://discuss.elastic.co/t/logstash-file-input-plugin-picks-different-files-other-than-specified-path/332380 "2023-05-03T06:42:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [May 3, 2023, 6:42am UTC](https://discuss.elastic.co/t/logstash-file-input-plugin-picks-different-files-other-than-specified-path/332380/1 "2023-05-03T06:42:15Z")

</div>

Hi , I am using the file input plugin , here is my config

```auto
nput {
    file {
            type => "tomeeaccess_passport"
            path => "/etc/logstash/logs/localhost_access_log..2023-04-20.txt"
            start_position => beginning
            #sincedb_path => "/opt/logstash/sincedb-access"
    }
}
output {
    elasticsearch {
            hosts => "http://elastic_ip:9200"
            user => "elastic"
            password => "pwd"
            index => "access_passport%{+YYYY.MM.dd}"
    }
}

```

When i check the logs in ths index i am getting logs from /var/logs/httpd and /var/log/messages and /var/log/syslog I don't even have httpd on this machine. i Dont know how it is accessing that. I There is not even a single entry from specified path

---

<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:** [May 31, 2023, 6:43am UTC](https://discuss.elastic.co/t/logstash-file-input-plugin-picks-different-files-other-than-specified-path/332380/2 "2023-05-31T06:43:13Z")

</div>

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