# headerless.hostname

Override the hostname assigned to headerless messages.

This parameter applies to pmrfc3164: Parse RFC3164-formatted messages.

Name:

  headerless.hostname

Scope:

  module

Type:

  string (see Rsyslog Parameter String Constants)

Default:

  module=<ip-address of sender>

Required?:

  no

Introduced:

  8.2508.0

## Description

By default, rsyslog uses the sender’s IP address as the hostname for headerless messages. Set this option to provide a different hostname.

## Module usage

    parser(name="custom.rfc3164" type="pmrfc3164" headerless.hostname="example.local")

## See also

See also pmrfc3164: Parse RFC3164-formatted messages.

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.