Skip to content

Commit

Permalink
Syslog hostname to allow underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcOverIP committed Jul 17, 2020
1 parent 166a598 commit 9da4918
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion elkserver/logstash/conf.d/20-redir-haproxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ filter {

# Let's first trim the syslog info from the log line
grok {
match => { "message" => ["%{SYSLOGTIMESTAMP:syslogtimestamp} %{SYSLOGHOST:sysloghostname} %{PROG:syslogprogram}(?:\[%{POSINT:syslogpid}\])?: %{GREEDYDATA:messagenosyslog}"] }
match => { "message" => ["%{SYSLOGTIMESTAMP:syslogtimestamp} %{NOTSPACE:sysloghostname} %{PROG:syslogprogram}(?:\[%{POSINT:syslogpid}\])?: %{GREEDYDATA:messagenosyslog}"] }
}


Expand Down
2 changes: 1 addition & 1 deletion elkserver/logstash/conf.d/30-redir-apache.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ filter {

# Let's first trim the syslog-like info from the log line
grok {
match => { "message" => [ "\[%{HTTPDATE:redirtraffic.timestamp}\] (%{SYSLOGHOST:sysloghostname}|-) %{PROG:syslogprogram}(?:\[%{POSINT:syslogpid}\]): %{GREEDYDATA:messagenosyslog}" ] }
match => { "message" => [ "\[%{HTTPDATE:redirtraffic.timestamp}\] (%{NOTSPACE:sysloghostname}|-) %{PROG:syslogprogram}(?:\[%{POSINT:syslogpid}\]): %{GREEDYDATA:messagenosyslog}" ] }
}

# now matching the real Apache log lines. We have several log line formats we need to match:
Expand Down
2 changes: 1 addition & 1 deletion elkserver/logstash/conf.d/40-redir-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ filter {

# Let's first trim the syslog-like info from the log line
grok {
match => { "message" => [ "\[%{HTTPDATE:redirtraffic.timestamp}\] (%{SYSLOGHOST:sysloghostname}|-) %{PROG:syslogprogram}(?:\[%{POSINT:syslogpid}\]): %{GREEDYDATA:messagenosyslog}" ] }
match => { "message" => [ "\[%{HTTPDATE:redirtraffic.timestamp}\] (%{NOTSPACE:sysloghostname}|-) %{PROG:syslogprogram}(?:\[%{POSINT:syslogpid}\]): %{GREEDYDATA:messagenosyslog}" ] }
}

# now matching the real Apache log lines. We have several log line formats we need to match:
Expand Down

0 comments on commit 9da4918

Please sign in to comment.