Status : core plugin, unit tested and maintained.
This plugin is used on log server to receive logs from an HTTP/HTTPS stream. This is useful in case the agent can only output logs through an HTTP/HTTPS channel.
Example 1:
Config using url: input://http://localhost:8080
Config using logstash format:
input {
http {
host => 127.0.0.1
port => 8080
}
}
Parameters:
host
: listen address for the HTTP server : can be 0.0.0.0, 127.0.0.1 ...port
: port for the HTTP server.type
: to specify the log type, to faciliate crawling in kibana. Example:type=http
. No default value.unserializer
: more doc at unserializers. Default value tojson_logstash
.ssl
: enable SSL mode. More doc at ssl. Default : false