basicAuthFile¶
Protects an imhttp input with HTTP Basic Authentication using an htpasswd file.
This parameter applies to imhttp: HTTP input module.
- Name:
basicAuthFile
- Scope:
input
- Type:
string
- Default:
none
- Required?:
no
- Introduced:
Not specified
Description¶
imhttp accepts Authorization: Basic credentials for the input when this
parameter is set. The htpasswd file is read line-by-line and blank lines or
# comments are ignored.
For safety, the Basic-auth header is capped at 2048 Base64 characters. That is already larger than practical Basic-auth credentials, but small enough to keep the parser on a fixed stack buffer and reject oversized headers outright.
Input usage¶
input(
type="imhttp"
endpoint="/ingest"
basicAuthFile="/etc/rsyslog/htpasswd"
)
See also¶
See also imhttp: HTTP input module.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.