Fluentd
Search…
1.0
Introduction
Overview
Installation
Configuration
Deployment
Container Deployment
Monitoring Fluentd
Input Plugins
Output Plugins
Filter Plugins
Parser Plugins
regexp
apache2
apache_error
nginx
syslog
ltsv
csv
tsv
json
msgpack
multiline
none
Formatter Plugins
Buffer Plugins
Storage Plugins
Service Discovery Plugins
Metrics Plugins
How-to Guides
Language Bindings
Plugin Development
Plugin Helper API
Troubleshooting Guide
Powered By
GitBook
ltsv
The
ltsv
parser plugin parses
LTSV
format.
Parameters
See
Parse Section Configurations
.
delimiter
type
default
version
string
\t
0.14.0
The delimiter (character or string) separating LTSV values.
delimiter_pattern
type
default
version
regexp
nil
1.2.0
The delimiter pattern of TSV values. This parameter overwrites
delimiter
parameter if specified.
delimiter_pattern
is string type before 1.2.0.
label_delimiter
type
default
version
string
:
0.14.0
The delimiter character between field name and value.
Example for LTSV
This incoming event:
1
time:2013/02/28 12:00:00\thost:192.168.0.1\treq_id:111\tuser:-
Copied!
is parsed as:
1
time:
2
1362020400 (2013/02/28/ 12:00:00)
3
​
4
record:
5
{
6
"host" : "192.168.0.1",
7
"req_id" : "111",
8
"user" : "-"
9
}
Copied!
If you set
null_value_pattern '-'
in the configuration,
user
field becomes
nil
instead of
"-"
.
Example with
delimiter_pattern
With this configuration:
1
<parse>
2
@type ltsv
3
delimiter_pattern /\s+/
4
label_delimiter =
5
</parse>
Copied!
This incoming event:
1
timestamp=1362020400 host=192.168.0.1 req_id=111 user=-
Copied!
is parsed as:
1
record:
2
{
3
"timestamp": "1362020400",
4
"host" : "192.168.0.1",
5
"req_id" : "111",
6
"user" : "-"
7
}
Copied!
If this article is incorrect or outdated, or omits critical information, please
let us know
.
Fluentd
is an open-source project under
Cloud Native Computing Foundation (CNCF)
. All components are available under the Apache 2 License.
Previous
syslog
Next
csv
Last modified
11mo ago
Copy link
Contents
Parameters
delimiter
delimiter_pattern
label_delimiter
Example for LTSV
Example with delimiter_pattern