splunk - Splunk UF 不向索引器发送数据
问题描述
我有 Splunk UF 和 Splunk Enterprise Server,都是 v8.2.1,在 docker 容器中运行,但我无法在 Enterprise Server 上看到关于我创建的新索引“mytest”的任何数据:
Enterprise Server 将默认端口 9997 用作接收器端口:
这两个容器都连接到我创建的“splunk”网络:
"Containers": {
"0f9e44620ce9fba16df21af6d2253c4b02b9714cb3ea126a616f10d06f836eb9": {
"Name": "dspinelli-uf",
"EndpointID": "0e1dd065ee3d815c943a8b52e6107e53a4b57d9e3103b17d1461611543769869",
"MacAddress": "02:42:ac:12:00:03",
"IPv4Address": "172.18.0.3/16",
"IPv6Address": ""
},
"3a1a084561eda8013baa8847f4ca30fd68eb74468ff666195bf1c15e0f8a280f": {
"Name": "dspinelli-ent",
"EndpointID": "7159b1a41840f9dfae04b50bb61386f8c3ac2233aee334026b9f1d685cfcf571",
"MacAddress": "02:42:ac:12:00:02",
"IPv4Address": "172.18.0.2/16",
"IPv6Address": ""
}
UF 上的 Inputs.conf:
[splunktcp://9997]
disabled = 0
[http://hec-uf]
description = UF HTTP Event Collector
disabled = 0
token = 4022d42f-9132-442a-8a79-5d3eea1ad40d
index = mytest
indexes = mytest
outputgroup = tcpout
UF 上的 Outputs.conf:
[indexAndForward]
index = false
[tcpout]
defaultGroup = default-autolb-group
[tcpout:default-autolb-group]
server = dspinelli-ent:9997
[tcpout-server://dspinelli-ent:9997]
UF 和 Enterprise Server 之间的通信已建立:
netstat -an | grep 9997
tcp 0 0 0.0.0.0:9997 0.0.0.0:* LISTEN
tcp 0 0 172.18.0.3:44420 172.18.0.2:9997 ESTABLISHED
./bin/splunk list forward-server
Active forwards:
dspinelli-ent:9997
Configured but inactive forwards:
None
尝试用一些测试数据卷曲 UF 显示成功:
curl -k https://x.x.x.x:8087/services/collector \
> -H 'Authorization: Splunk 4022d42f-9132-442a-8a79-5d3eea1ad40d' \
> -d '{"sourcetype": "demo", "event":"Hello, I was sent from UF"}'
{"text":"Success","code":0}
但是,Enterprise Server 中的索引上从未显示任何数据:
有谁知道这里可能有什么问题或下一步是什么?
解决方案
推荐阅读
- java - 写作清单
在 csv java 中使用 CsvPrinter - azure - 无论路径如何,Azure 管道触发器都包括
- php - 如何使用 phpunit 测试确保数据通过查看在 laravel 中具有特定键
- android - 将循环结果添加到变量
- node.js - 使用 fluen-ffmpeg 在视频上叠加视频(在左上或右上)
- python - 有没有办法知道哪些列有不同的数据类型可以合并?Python - 熊猫
- java - 正则表达式以匹配具有非数字字符和可变数字的精确字符串
- r - 如何将多个相同类型的 pdata 身份添加到一个样本中,并在绘图时能够通过这些身份进行区分
- dart - 我在飞镖中遇到了这个问题,有解决方案吗?
- python - 如何在python中处理来自航拍图像的gcp点列表?