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

File tree

1 file changed

+1
-1
lines changed
  • x-pack/distributions/internal/observabilitySRE/qa/smoke/docker/logstash/pipeline

1 file changed

+1
-1
lines changed

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

+1-1
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)