> For the complete documentation index, see [llms.txt](https://docs.fluentd.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fluentd.org/parser/syslog.md). # syslog The `syslog` parser plugin parses `syslog` generated logs. This plugin supports two RFC formats, RFC-3164 and RFC-5424. ## Parameters See [Parse Section Configurations](/configuration/parse-section.md). ### `time_format` | type | default | version | | ------ | -------------- | ------- | | string | %b %d %H:%M:%S | 0.14.10 | Specifies the time format for the event time. Default is `"%b %d %H:%M:%S"` for RFC-3164 protocol. If your log uses sub-second timestamp, change this parameter to `"%b %d %H:%M:%S.%N"`. ### `rfc5424_time_format` | type | default | version | | ------ | ---------------------- | ------- | | string | %Y-%m-%dT%H:%M:%S.%L%z | 0.14.14 | Specifies the event time format for the RFC-5424 protocol. ### `message_format` | type | default | available values | version | | ---- | ------- | -------------------- | ------- | | enum | rfc3164 | rfc3164/rfc5424/auto | 0.14.14 | Specifies the protocol format. Supported values are `rfc3164`, `rfc5424` and `auto`. Default is `rfc3164`. If your `syslog` uses `rfc5424`, use `rfc5424` instead. `auto` is useful when this parser receives both `rfc3164` and `rfc5424` message. `syslog` parser detects message format by using message prefix. ### `with_priority` | type | default | version | | ---- | ------- | ------- | | bool | false | 0.14.0 | If the incoming logs have priority prefix e.g. `<9>`, set `true`. Default is `false`. This parameter is used inside `in_syslog` plugin because the file logs via `syslog` do not have `<9>` like priority prefix. ### `parser_type` | type | default | available values | version | | ---- | ------- | ---------------- | -------------------------------------- | | enum | regexp | regexp/string | 1.7.1(for rfc3164)/1.11.0(for rfc5424) | Specifies the internal parser type for `rfc3164`/`rfc5424` format. Supported values are `regexp` and `string`. Both parsers generate the same record for the standard format. If `regexp` does not work for your logs, consider `string` type instead. We recommend using `string` parser because it is 2x faster than `regexp`. The default is `regexp` for existing users. Fluentd v2 will change the default to `string` parser. ### `support_colonless_ident` | type | default | version | | ---- | ------- | ------- | | bool | true | 1.7.1 | This parameter is used when `parser_type` is `string`. If your message does not contain the ident field, set `false` to avoid ident mismatch. ``` # No ident field log Feb 5 17:32:18 10.0.0.99 Use the BFG! # generated record with true is wrong {"host":"10.0.0.99","ident":"Use","message":"the BFG!"} # generated record with false is correct {"host":"10.0.0.99","message":"Use the BFG!"} ``` ## Regexp Patterns Show regexp patterns for parsing logs. ### RFC-3164 Pattern ``` expression /^\<(?[0-9]+)\>(?