# Filebeat using default input path instead of my log path

**URL:** <https://discuss.elastic.co/t/filebeat-using-default-input-path-instead-of-my-log-path/300982>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 29, 2022, 2:26pm UTC](https://discuss.elastic.co/t/filebeat-using-default-input-path-instead-of-my-log-path/300982 "2022-03-29T14:26:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benny111](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benny111/32/103659_2.png) [@benny111](https://discuss.elastic.co/u/benny111)\
**Post date:** [March 29, 2022, 2:26pm UTC](https://discuss.elastic.co/t/filebeat-using-default-input-path-instead-of-my-log-path/300982/1 "2022-03-29T14:26:33Z")

</div>

I have a filebeat installed in Ubuntu 20.04.  
I have changed my input file path to my own log path.  
But when it starts to service, it seems to collect the default system logs.  
I tried to use

```auto
sudo /usr/share/filebeat/bin/filebeat -e -c /etc/filebeat/filebeat.yml

```

But it didn't work.  
Here is my .yml file.

```auto
filebeat.inputs:
# filestream is an input for collecting log messages from files.
- type: filestream

    # Change to true to enable this input configuration.
    enabled: true

    # Paths that should be crawled and fetched. Glob based paths.
    paths:
        - /home/username/log_path/*.json
    json.keys_under_root: true
    json.overwrite_keys: true
    json.add_error_key: true

```

---

<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 26, 2022, 4:27pm UTC](https://discuss.elastic.co/t/filebeat-using-default-input-path-instead-of-my-log-path/300982/2 "2022-04-26T16:27:26Z")

</div>

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