tachyon
(Apoorv Parijat)
January 13, 2017, 10:13am
1
I want to include AWS Instance's tag information in each Filebeat document. I can think of two ways to do this -
Modify the log output and include the info in there. This will require tweaking all the services whose log files are being tracked.
Run a script at launch that
modifies the filebeat.yml
file
pulls AWS metadata for that instance
and adds the tag info to yml
file
It sounds like method 2
is the right approach.
Is there a better way to do this? Does Filebeat provide a way to dynamically set prospector attributes?
maddin2016
(Maddin2016)
January 13, 2017, 12:38pm
2
You can also use environment variables. See here for more infos.
andrewkroh
(Andrew Kroh)
January 13, 2017, 12:59pm
3
You just need to add this to your config file if you want instance_id. For other information you could use environment variables.
processors:
- add_cloud_metadata:
See the add_cloud_metadata documentation for more details.
system
(system)
Closed
February 14, 2017, 5:49am
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.