我是靠谱客的博主 玩命雪糕,这篇文章主要介绍filebeat7.7.0相关详细配置预览- processors - add_host_metadata,现在分享给大家,希望可以做个参考。

转载请标明出处:
http://blog.csdn.net/qq_27818541/article/details/108396028
本文出自:【BigManing的博客】

add_host_metadata

自动追加host相关信息,配置如下

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
processors: - add_host_metadata: cache.ttl: 5m geo: name: nyc-dc1-rack1 location: 40.7128, -74.0060 continent_name: North America country_iso_code: US region_name: New York region_iso_code: NY city_name: New York

结果为

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ "host":{ "architecture":"x86_64", "name":"example-host", "id":"", "os":{ "family":"darwin", "build":"16G1212", "platform":"darwin", "version":"10.12.6", "kernel":"16.7.0", "name":"Mac OS X" }, "ip": ["192.168.0.1", "10.0.0.1"], "mac": ["00:25:96:12:34:56", "72:00:06:ff:79:f1"], "geo": { "continent_name": "North America", "country_iso_code": "US", "region_name": "New York", "region_iso_code": "NY", "city_name": "New York", "name": "nyc-dc1-rack1", "location": "40.7128, -74.0060" } } }

最后

以上就是玩命雪糕最近收集整理的关于filebeat7.7.0相关详细配置预览- processors - add_host_metadata的全部内容,更多相关filebeat7.7.0相关详细配置预览-内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(49)

评论列表共有 0 条评论

立即
投稿
返回
顶部