HTTP
The HTTP input plugin allows you to send custom records to an HTTP endpoint.
Last updated
Was this helpful?
Was this helpful?
curl -d '{"key1":"value1","key2":"value2"}' -XPOST -H "content-type: application/json" http://localhost:8888/app.log[INPUT]
name http
listen 0.0.0.0
port 8888
[OUTPUT]
name stdout
match app.logpipeline:
inputs:
- name: http
listen: 0.0.0.0
port: 8888
outputs:
- name: stdout
match: app.logcurl -d '{"key1":"value1","key2":"value2"}' -XPOST -H "content-type: application/json" http://localhost:8888[INPUT]
name http
listen 0.0.0.0
port 8888
[OUTPUT]
name stdout
match http.0pipeline:
inputs:
- name: http
listen: 0.0.0.0
port: 8888
outputs:
- name: stdout
match: http.0curl -d '{"key1":"value1","key2":"value2"}' -XPOST -H "content-type: application/json" http://localhost:8888/app.log[INPUT]
name http
listen 0.0.0.0
port 8888
tag_key key1
[OUTPUT]
name stdout
match value1pipeline:
inputs:
- name: http
listen: 0.0.0.0
port: 8888
tag_key: key1
outputs:
- name: stdout
match: value1[INPUT]
name http
success_header X-Custom custom-answer
success_header X-Another another-answer inputs:
- name: http
success_header: X-Custom custom-answer
success_header: X-Another another-answercurl -d @app.log -XPOST -H "content-type: application/json" http://localhost:8888/app.log[INPUT]
name http
listen 0.0.0.0
port 8888
[OUTPUT]
name stdout
match *pipeline:
inputs:
- name: http
listen: 0.0.0.0
port: 8888
outputs:
- name: stdout
match: '*'$> fluent-bit -i http -p port=8888 -o stdout