我已经能够在主机和端口上设置我的HTTP源:
agent.sources=s1
...
agent.sources.s1.type=http
agent.sources.s1.bind=0.0.0.0
agent.sources.s1.port=5140
我可以通过以下方式将json文档发布到它:
curl -X POST -H' Content-Type:application / json;字符集= UTF-8' -d' [{ "头" :{" ip" :" 192.168.1.102"," host" : " random_host.example.com" },"身体" :" random_body" },{"标题" :{ " IP" :" 192.168.1.102"," host" :" random_host.example.com" },"身体" : " really_random_body" }]'
http://hostname:port
但是我希望能够将Json文档发布到http://hostname.com:port/a/b/c/
我怎么能这样做?