Add data - How to add custom logs?

Dear All,

I successfully set up Open Distro ES with my Nginx logs and it is working fine. Now, I have my internal application and want to send it’s log to Kibana.

I could not find any module for custom log when i try to add data. There are predefined modules which can be enabled as i did for Nginx. But, how can i add custom logs?

I added my custom logs in filebeat.yml under “paths:”. but still i can’t view my custom logs and nginx logs are available from same filebeat.

Please advise what needs to be done for custom logs.

Thanks
Bala

Hey Bala! Welcome!

There are lots of ways to achieve that, but with filebeat, I added this to filebeat.yml (assuming a JSON log)

- type: log
  enabled: true
  json.add_error_key: true
  #may be different for yours
  json.message_key: message
  paths:
    - /path/to/your/logs/*.log

Be aware this should get it into Elasticsearch but you won’t have anything else (visualizations, etc.)