Splunk HEC 取发送数据 服务器的hostname

1:背景:

最近Client 发送数据到 Splunk HEC, 发现对方hostname 没有取到,都是HEC 的VIP 地址。

这个就不能发现是那个host 发过来的数据,下面查了下文档,发现Splunk 是可以跟踪发送数据的host 的,主要配置如下:

2: 解决方法:

splunk_httpinput\inputs.conf

connection_host = [ip|dns|none]
* Specify the host if an event doesn't have host set.
* "ip" sets the host to the IP address of the system sending the data.
* "dns" sets the host to the reverse DNS entry for IP address of the system sending the data.
* "none" leaves the host as specified in the HTTP header.

这个配置文件主要是写在cluster master 的上面,然后 发布到indexer server 上去,这样client server, 发送数据 通过token 到index, splunk 的search head 前台就可以收到 数据了。

注意: 上面的配置是:connection_host = dns,或者是 connection_host =

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shenghuiping2001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值