senvardarsemih / fluent-logging-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error starting td-agent

amgmdz opened this issue · comments

I have used its td-agent.conf and when restarting the service it gives the following error: config error file="/etc/td-agent/td-agent.conf" error="'format' parameter is required".

td-agent.conf

I think I was able to solve it by replacing:

<filter *.**>
  @type parser
  key_name log
  reserve_data true
  format json #fix error
  remove_key_name_field true
  emit_invalid_record_to_error false
  #<parse>
  #  @type json
  #</parse>
</filter>

@amgmdz I'm glad you're resolving your problem.
The type parameter specifies the type of the plugin. The parser filter plugin "parses" string field in event records and mutates its event record with the parsed result. You can check the documentation from here