service_input_example 可作为编写ServiceInput类插件的参考示例样例,可以在指定端口接收模拟HTTP请求。源代码
service_input_example
ServiceInput
列含义见 概览 · 事件能力列说明。
✓
—
Stable
推荐版本:iLogtail v1.0.27 及以上
Type
string,无默认值(必填)
插件类型,固定为service_input_example。
Address
string,:19000
:19000
接收端口。
采集配置
输入
输出
Last updated 1 month ago
enable: true inputs: - Type: service_input_example flushers: - Type: flusher_stdout OnlyStdout: true
curl --header "test:val123" http://127.0.0.1:19000/data
{ "test":"val123", "__time__":"1658495321" }