Skip to content

Example configuration shipper #138

@JR-BR

Description

@JR-BR

_Hi

I am starting the tests and am having an error to include the correct syntax.
Please, can you give an example of how to do this shipper configuration?
Thank you very much_

dockbeat.yml

shipper:
...
-# Optional fields that you can specify to add additional information to the
-# output. Fields can be scalar values, arrays, dictionaries, or any nested
-# combination of these.

  	env:
  		fields:
  			name:new
                        type: string   

or

  fields:
    env: staging
      name: count2
      type: int
      required: true

-# If this option is set to true, the custom fields are stored as top-level
-# fields in the output document instead of being grouped under a fields
-# sub-dictionary. Default is false.
fields_under_root: true

Log Docker:

Loading config file error: YAML config parsing failed on /etc/dockbeat/dockbeat.yml: yaml: line 229: found character that cannot start any token. Exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions