httpheaders¶
Configures an array of additional HTTP headers that omhttp sends with each request.
This parameter applies to omhttp: HTTP Output Module.
- Name:
httpheaders
- Scope:
input
- Type:
array
- Default:
input=none
- Required?:
no
- Introduced:
Not specified
Description¶
An array of strings that defines a list of one or more HTTP headers to send with each message. Keep in mind that some HTTP headers are added using other parameters. Content-Type can be configured using httpcontenttype, and Content-Encoding: gzip is added when using the compress parameter.
Input usage¶
module(load="omhttp")
action(
type="omhttp"
httpHeaders=[
"X-Insert-Key: key",
"X-Event-Source: logs"
]
)
See also¶
See also omhttp: HTTP Output Module.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.