New in version 0.5.
Plugin Name: HttpListenInput
HttpListenInput plugins start a webserver listening on the specified address and port. If no decoder is specified data in the request body will be populated as the message payload. Messages will be populated as follows:
Uuid: Type 4 (random) UUID generated by Heka.
Timestamp: Time HTTP request is handled.
Hostname: The remote network address of requester.
Payload: Entire contents of the HTTP request body.
Fields[“UserAgent”] (string): Request User-Agent header (e.g. “GitHub Hookshot dd0772a”).
Fields[“ContentType”] (string): Request Content-Type header (e.g. “application/x-www-form-urlencoded”).
New in version 0.6.
All query parameters are added as fields. For example, a request to “127.0.0.1:8325?user=bob” will create a field “user” with the value “bob”.
An IP address:port on which this plugin will expose a HTTP server. Defaults to “127.0.0.1:8325”.
New in version 0.7.
It is possible to inject arbitrary HTTP headers into each outgoing response by adding a TOML subsection entitled “headers” to you HttpOutput config section. All entries in the subsection must be a list of string values.
New in version 0.9.
Add additional request headers as message fields. Defaults to empty list.
New in version 0.10.
If requiring Authentication specify “Basic” or “API” To use “API” you must set a header called “X-API-KEY” with the value of the “api_key” config.
Username to check against if auth_type = “Basic”.
Password to check against if auth_type = “Basic”.
String to validate the “X-API-KEY” header against when using auth_type = “API”
Specifies whether or not SSL/TLS encryption should be used for the TCP connections. Defaults to false.
A sub-section that specifies the settings to be used for any SSL/TLS encryption. This will only have any impact if use_tls is set to true. See Configuring TLS.
[HttpListenInput] address = "0.0.0.0:8325"
With Basic Auth:
[HttpListenInput] address = "0.0.0.0:8325" auth_type = "Basic" username = "foo" password = "bar"
With API Key Auth:
[HttpListenInput] address = "0.0.0.0:8325" auth_type = "API" api_key = "1234567"