Skip to content

Commit 63a5147

Browse files
committed
Simplify grock pattern match
The grok pattern is unanchored-by-default, we don't need the leading and trailing wildcards.
1 parent 3379ae3 commit 63a5147

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • x-pack/distributions/internal/observabilitySRE/qa/smoke/docker/logstash/pipeline

x-pack/distributions/internal/observabilitySRE/qa/smoke/docker/logstash/pipeline/logstash.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ filter {
3838

3939
if [log_content] =~ /json=/ {
4040
grok {
41-
match => { "log_content" => ".*json=%{GREEDYDATA:json_string}.*" }
41+
match => { "log_content" => "json=%{GREEDYDATA:json_string}" }
4242
}
4343
json {
4444
source => "json_string"

0 commit comments

Comments
 (0)