I want to send json formated logs via filebeat to elasticsearch

Can someone please let me know, if below config is correct. The content of logs in JSON but extension is .log.

  • type: log
    paths:
    • /opt/Application.log
      json.keys_under_root: true
      json.add_error_key: true

Below is the example of log's content

{"@timestamp":"2020-09-17T16:54:47.752+05:30","@version":"1","message":"Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoSourcing.RfxHeaderModel] processed by converter type [bean]","logger_name":"org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner","thread_name":"ServerService Thread Pool -- 93","level":"INFO","level_value":20000}
{"@timestamp":"2020-09-17T16:54:47.758+05:30","@version":"1","message":"Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoSourcing.RfxInvitiesModel$QuoteAnalysisStatus] processed by converter type [bean]","logger_name":"org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner","thread_name":"ServerService Thread Pool -- 93","level":"INFO","level_value":20000}
{"@timestamp":"2020-09-17T16:54:47.761+05:30","@version":"1","message":"Dwr classpath scanning detected candidate DTO [com.prospecta.mdo2.hib.hibMODEL.mdoSourcing.RfxInvitiesModel$RfxInvitiesStatus] processed by converter type [bean]","logger_name":"org.directwebremoting.spring.DwrClassPathBeanDefinitionScanner","thread_name":"ServerService Thread Pool -- 93","level":"INFO","level_value":20000}

Could you please format the post using code tags? It would be much easier to go through it.

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