我正在尝试启用Splunk收集的Write_http插件,问题是我尝试从外部卷曲
curl http://10.xx.xxx.x:8088/services/collector/raw -H "Authorization: Splunk 2c396ad4-f518-416f-83cd-e37596228792" -d {"test":"value"}
有效。但是当我在 收集的插件
<Plugin write_http>
<Node "node-http-1">
URL "http://10.xx.xxx.x:8088/services/collector/raw?channel=2c396ad4-f518-416f-83cd-e37596228792"
Header "Authorization: Splunk 2c396ad4-f518-416f-83cd-e37596228792"
Format "JSON"
Metrics true
StoreRates true
我明白了
[error] write_http plugin: curl_easy_perform failed with status 56: Recv failure: Connection reset by peer
是因为收集的卷曲版本吗?
答案 0 :(得分:0)
只需在splunk的http数据输入中的全局设置中检查端口即可。 默认情况下必须为8080。相应地在write_http插件中更改collect.conf中的端口。
希望它对您有用!