Assign beat.hostname to another field

Hi all,
Is there a way to assign to some field a value of the beat.hostname field? Not to rename beat.hostname, not to smthg else, only to assign its value to another field like:

- type: log
  enabled: true
  json.keys_under_root: true
  json.add_error_key: true
  fields_under_root: true
  close_removed: true
    service: storm
    host: beat.hostname
    - /u01/storm/stormlog/workers-artifacts/additional_logs/json*.log

but it does not work.
ELK version 6.2.1

Could you please share your configuration formatted using </> so if you have config problems I can find them?

Of course, edited.

Do you have any ideas?

Unfortunately, it's not supported by the current fields implementation. fields does not support referencing other fields.

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