Skip to content

feat(roles/apache_httpd): add csv log formats (and tsv equivalents) - #391

Open
ebuerki-lf wants to merge 12 commits into
mainfrom
feat/apache_httpd_csvlog
Open

ebuerki-lf wants to merge 12 commits into
mainfrom
feat/apache_httpd_csvlog

Conversation

@ebuerki-lf

Copy link
Copy Markdown
Contributor

No description provided.

… csvsiem" and their tsv equivalents "tsvio tsvextensive tsvsiem"

@NavidSassan NavidSassan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didnt have a closer look at the formats themselves yet, most comments are about the style

@@ -1,5 +1,5 @@
# {{ ansible_managed }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit message should start with feat(roles/apache_httpd)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll squash it during merge

Comment thread roles/apache_httpd/templates/etc/httpd/conf-available/logio.conf.j2 Outdated
Comment thread roles/apache_httpd/templates/etc/httpd/conf-available/logio.conf.j2 Outdated
Comment thread roles/apache_httpd/templates/etc/httpd/conf-available/logio.conf.j2 Outdated
Comment thread roles/apache_httpd/templates/etc/httpd/conf-available/logio.conf.j2 Outdated
Comment thread roles/apache_httpd/templates/etc/httpd/conf-available/logio.conf.j2 Outdated
…nt for csv/tsv log formats. log cloudflare headers CF-Ray CF-Connecting-IP in all csv/tsv formats
@ebuerki-lf ebuerki-lf changed the title feat(apache_httpd): add csv log formats (and tsv equivalents) feat(roles/apache_httpd): add csv log formats (and tsv equivalents) Sep 18, 2026
LogFormat "%h %{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" linuxfabrikio

{# Row 1 of the field tables below looks misaligned here, but lines up in the rendered file. #}
# csvio, tsvio: based on the linuxfabrikio LogFormat, plus the Cloudflare headers

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

csvio and tsvio put referer and user agent after all three byte counts (%b, %I, %O). That matches neither the other csv/tsv formats nor linuxfabrikio:

  • csvextensive/tsvextensive and csvsiem/tsvsiem put them directly after the request line, in the Request group.
  • linuxfabrikio puts them between %b and %I: ... "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O

what was the intention / goal of this? which one should we match? or is the deviation intentional? if it is, we need to document why

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants