# Filebeat when started as homebrew service is not harvesting logs

**URL:** <https://discuss.elastic.co/t/filebeat-when-started-as-homebrew-service-is-not-harvesting-logs/238004>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 22, 2020, 5:42am UTC](https://discuss.elastic.co/t/filebeat-when-started-as-homebrew-service-is-not-harvesting-logs/238004 "2020-06-22T05:42:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkat\_Ram\_Movva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkat_ram_movva/32/70774_2.png) [@Venkat\_Ram\_Movva](https://discuss.elastic.co/u/Venkat_Ram_Movva)\
**Post date:** [June 22, 2020, 5:42am UTC](https://discuss.elastic.co/t/filebeat-when-started-as-homebrew-service-is-not-harvesting-logs/238004/1 "2020-06-22T05:42:40Z")

</div>

Hi,

I installed `filebeat-full` using the brew command from the documentation. I changed the config file(present at `/usr/local/etc/filebeat/filebeat.yml`). I started the service using `brew services start filebeat-full`. But I am not seeing logs getting harvested and pushed into Kafka. Checked the logs at `/usr/local/var/log/filebeat`. There are no errors.

But when I start as a foreground process using ` filebeat -e -d "*"` , I am able to see that the events are getting published. And I am able to see them in Kibana.

I am interested in running this as a daemon. I don't want to have to start this manually each time a mac restarts or if someone accidentally stops this process.

Mac OS version: 10.15.5  
Filebeat version from homebrew: 7.8.0

Filebeat configuration file :

```auto
        #=========================== Filebeat prospectors =============================

    filebeat.inputs:
        -
          paths:
            - /Users/myuser/Desktop/Nightly/a/*.log
          ignore_older: 48h
          close_inactive: 5m
          clean_inactive: 49h
          multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
          multiline.negate: true
          multiline.match: after
          processors:
          - add_fields:
              fields:
                kafka_topic: mykafkatopic
    #================================ Outputs =====================================

    #------------------------------- Kafka output ----------------------------------
    output.kafka:
      enabled: true
      hosts: ["Kafka.mydomain.COM:9092"]
      topic: '%{[fields.kafka_topic]}'
      partition.hash:
        reachable_only: false

    #================================ Logging =====================================

    logging:
      to_files: true
      files:
        rotateeverybytes: 10485760 # = 10MB
      selectors: ["*"]
      level: debug

```

Please help me in debugging this issue.

Thanks,  
Venkat.

---

<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:** [July 20, 2020, 7:42am UTC](https://discuss.elastic.co/t/filebeat-when-started-as-homebrew-service-is-not-harvesting-logs/238004/2 "2020-07-20T07:42:43Z")

</div>

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