From 9d07ceabc4a8e710e79ae1bb3a06f8cd75b62760 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Thu, 7 Jun 2018 13:46:58 +0200
Subject: [PATCH] Add support for SNI logging

---
 templates/td-agent.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/td-agent.conf b/templates/td-agent.conf
index 7a178e8..ae6d6b6 100644
--- a/templates/td-agent.conf
+++ b/templates/td-agent.conf
@@ -10,7 +10,7 @@
   <parse>
     @type multi_format
     <pattern>
-      format /^(?<prefix>.+) (?<ps>\w+)\[(?<pid>\d+)\]: (?<c_ip>[\w\.]+):(?<c_port>\d+) \[(?<syslog_time>.+)\] (?<f_end>[\w\.-~]+) (?<b_end>[\w\.-]+)\/(?<b_server>[\<\>\w\.-]+) (?<tq>\d+)\/(?<tw>\d+)\/(?<tc>\d+)\/(?<tr>\d+)\/(?<tt>\d+) (?<status_code>\d+) (?<bytes_read>\d+) (?<captured_request_cookie>.+) (?<captured_response_cookie>.+) (?<termination_state>.+) (?<actconn>\d+)\/(?<feconn>\d+)\/(?<beconn>\d+)\/(?<srv_conn>\d+)\/(?<retries>\d+) (?<srv_queue>\d+)\/(?<backend_queue>\d+) "(?<http_request>.+)"$/
+      format /^(?<prefix>.+) (?<ps>\w+)\[(?<pid>\d+)\]: (?<c_ip>[\w\.]+):(?<c_port>\d+) \[(?<syslog_time>.+)\] (?<f_end>[\w\.-~]+) (?<b_end>[\w\.-]+)\/(?<b_server>[\<\>\w\.-]+) (?<tq>\d+)\/(?<tw>\d+)\/(?<tc>\d+)\/(?<tr>\d+)\/(?<tt>\d+) (?<status_code>\d+) (?<bytes_read>\d+) (?<captured_request_cookie>.+) (?<captured_response_cookie>.+) (?<termination_state>.+) (?<actconn>\d+)\/(?<feconn>\d+)\/(?<beconn>\d+)\/(?<srv_conn>\d+)\/(?<retries>\d+) (?<srv_queue>\d+)\/(?<backend_queue>\d+) (?<sni>[\w\.-~]+) "(?<http_request>.+)"$/
     </pattern>
     <pattern>
       format /^(?<prefix>.+) (?<ps>\w+)\[(?<pid>\d+)\]: (?<message>.+)$/
-- 
GitLab