-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logit logstash filters: change alb_access log type to aws_lb_access
this is what i unknowingly added the inputs in logit as in prod and staging, and it will be painful to change now. also it may be more accurate for LBs that are not ALBs
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
if [type] != 'alb_access' { | ||
if [type] != 'aws_lb_access' { | ||
mutate { | ||
add_field => [ "type", "syslog" ] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# | ||
# Fix up the datapoints for the alb_access log type | ||
# Fix up the datapoints for the aws_lb_access log type | ||
# | ||
if [@input] == "alb_access" { | ||
if [@input] == "aws_lb_access" { | ||
## remove extraneous fields | ||
mutate { | ||
remove_field => [ '[@shipper][name]', '[@source][component]', '[@source][type]' ] | ||
} | ||
|
||
## set @type | ||
mutate { | ||
replace => { "@type" => "alb_access" } | ||
replace => { "@type" => "aws_lb_access" } | ||
} | ||
} |