From 3d7353020eea548b7d06629b72546cec2eca1d2f Mon Sep 17 00:00:00 2001 From: Alexa Kreizinger Date: Mon, 7 Jul 2025 19:13:00 -0700 Subject: [PATCH 1/2] pipeline: parsers: lstv: general cleanup Signed-off-by: Alexa Kreizinger --- pipeline/parsers/ltsv.md | 12 ++++++------ vale-styles/FluentBit/Acronyms.yml | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pipeline/parsers/ltsv.md b/pipeline/parsers/ltsv.md index 644b8e080..bcadcab63 100644 --- a/pipeline/parsers/ltsv.md +++ b/pipeline/parsers/ltsv.md @@ -1,12 +1,12 @@ # LTSV -The **ltsv** parser allows to parse [LTSV](http://ltsv.org/) formatted texts. +The _LTSV_ parser lets you parse data in the [Labeled Tab-separated Values (LTSV)](http://ltsv.org/) format. -Labeled Tab-separated Values \(LTSV format is a variant of Tab-separated Values \(TSV\). Each record in a LTSV file is represented as a single line. Each field is separated by TAB and has a label and a value. The label and the value have been separated by ':'. +LTSV is a variant of the Tab-separated Values (TSV) format. Each record in an LTSV file is represented as a single line. Each field is separated by a tab and has a label and a value. The label and its value are separated by a colon (`:`). -Here is an example how to use this format in the apache access log. +Here is an example how to use this format in the Apache access log. -Config this in httpd.conf: +Config this in `httpd.conf`: ```text LogFormat "host:%h\tident:%l\tuser:%u\ttime:%t\treq:%r\tstatus:%>s\tsize:%b\treferer:%{Referer}i\tua:%{User-Agent}i" combined_ltsv @@ -42,7 +42,7 @@ parsers: {% endtab %} {% endtabs %} -The following log entry is a valid content for the parser defined above: +The following log entry is valid content for the previously defined parser: ```text host:127.0.0.1 ident:- user:- time:[10/Jul/2018:13:27:05 +0200] req:GET / HTTP/1.1 status:200 size:16218 referer:http://127.0.0.1/ ua:Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 @@ -60,4 +60,4 @@ After processing, it internal representation will be: [1531222025.000000000, {"host"=>"127.0.0.1", "ident"=>"-", "user"=>"-", "req"=>"GET /assets/css/style.css HTTP/1.1", "status"=>200, "size"=>1279, "referer"=>"http://127.0.0.1/", "ua"=>"Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0"}] ``` -The time has been converted to Unix timestamp \(UTC\). \ No newline at end of file +The time was converted to Unix timestamp (UTC). diff --git a/vale-styles/FluentBit/Acronyms.yml b/vale-styles/FluentBit/Acronyms.yml index 4ecc1696b..954c546a8 100644 --- a/vale-styles/FluentBit/Acronyms.yml +++ b/vale-styles/FluentBit/Acronyms.yml @@ -55,6 +55,7 @@ exceptions: - LLDB - LLVM - LTS + - LTSV - MQTT - NET - NGINX From 14b3e87d8d131441b113dd36f6868f71519f4b7c Mon Sep 17 00:00:00 2001 From: Alexa Kreizinger Date: Wed, 9 Jul 2025 11:59:10 -0700 Subject: [PATCH 2/2] Update pipeline/parsers/ltsv.md Co-authored-by: Craig Norris <112565517+cnorris-cs@users.noreply.github.com> Signed-off-by: Alexa Kreizinger --- pipeline/parsers/ltsv.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/parsers/ltsv.md b/pipeline/parsers/ltsv.md index bcadcab63..a22a0b3cc 100644 --- a/pipeline/parsers/ltsv.md +++ b/pipeline/parsers/ltsv.md @@ -6,7 +6,7 @@ LTSV is a variant of the Tab-separated Values (TSV) format. Each record in an LT Here is an example how to use this format in the Apache access log. -Config this in `httpd.conf`: +Configure this in `httpd.conf`: ```text LogFormat "host:%h\tident:%l\tuser:%u\ttime:%t\treq:%r\tstatus:%>s\tsize:%b\treferer:%{Referer}i\tua:%{User-Agent}i" combined_ltsv