Skip to content

Commit

Permalink
Fixes issue where log entries were having their dates parsed incorrec…
Browse files Browse the repository at this point in the history
…tly, causing errors in the ES index, this was causing out-of-date entries to appear in process log UI. (#213)

Co-authored-by: James Wood <[email protected]>
Co-authored-by: James Wood <[email protected]>
  • Loading branch information
3 people authored Aug 20, 2024
1 parent 709887c commit ac88d72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
8 changes: 1 addition & 7 deletions install/docker/console-db-es-ls-kibana/cws-logstash.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@ filter {
]
}

date {
match => [ "logdate", "ISO8601" ]
timezone => "UTC"
locale => en
remove_field => [ "logdate" ]
}


if [logLevel] == "WARNING" {
mutate {
update => { "logLevel" => "WARN" }
Expand Down
11 changes: 3 additions & 8 deletions install/docker/worker-ls/cws-logstash.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,9 @@ filter {
"message", '%{GREEDYDATA:msgBody}'
]
}

date {
match => [ "logdate", "ISO8601" ]
timezone => "UTC"
locale => en
remove_field => [ "logdate" ]
}




if [logLevel] == "WARNING" {
mutate {
update => { "logLevel" => "WARN" }
Expand Down
6 changes: 0 additions & 6 deletions install/logging/cws-logstash.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ filter {
]
}

date {
match => [ "logdate", "ISO8601" ]
timezone => "UTC"
locale => en
remove_field => [ "logdate" ]
}

if [logLevel] == "WARNING" {
mutate {
Expand Down

0 comments on commit ac88d72

Please sign in to comment.