Skip to content

Commit

Permalink
Merge pull request #534 from Cargill/url-enrichment-config
Browse files Browse the repository at this point in the history
fixed grok field in url enrichment
  • Loading branch information
kritikashahi authored Sep 11, 2024
2 parents f812c1f + 247859b commit 5434739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/enrichments/06_url.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ filter {
lowercase => [ "[url][full]" ]
}
grok {
match => {"[tmp][url][full]" => "^((?<[tmp][url][scheme]>.*?)://)?((?<[tmp][user][name]>.*?):(?<[tmp][user][password]>.*?)@)?(?<[tmp][url][domain]>\w+((\.\w+){1,})|\d+\.\d+\.\d+\.\d+)(:(?<[tmp][url][port]>\d+))?(/|$)((?<[tmp][url][path]>.*?))?(\?(?<[tmp][url][query]>.*?))?(\#(?<[tmp][url][fragment]>.*?))?$" }
match => {"[url][full]" => "^((?<[tmp][url][scheme]>.*?)://)?((?<[tmp][user][name]>.*?):(?<[tmp][user][password]>.*?)@)?(?<[tmp][url][domain]>\w+((\.\w+){1,})|\d+\.\d+\.\d+\.\d+)(:(?<[tmp][url][port]>\d+))?(/|$)((?<[tmp][url][path]>.*?))?(\?(?<[tmp][url][query]>.*?))?(\#(?<[tmp][url][fragment]>.*?))?$" }
timeout_millis => 500
tag_on_failure => "_groktimeout_url_en_1"
}
Expand Down

0 comments on commit 5434739

Please sign in to comment.