Skip to content

Commit

Permalink
Merge pull request #535 from Cargill/url-enrichment-config
Browse files Browse the repository at this point in the history
regex update to match - in domain
  • Loading branch information
kritikashahi authored Sep 12, 2024
2 parents 5434739 + 5ecb139 commit 84463cf
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 => {"[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\-\_\.]+)(:(?<[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 84463cf

Please sign in to comment.