mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
28 lines
632 B
Plaintext
28 lines
632 B
Plaintext
# Original Author: Justin Henderson
|
|
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
# Updated by: Doug Burks
|
|
# Last Update: 5/13/2017
|
|
|
|
filter {
|
|
if [type] == "bro_http" {
|
|
if [uri] {
|
|
ruby {
|
|
code => "event.set('uri_length', event.get('uri').length)"
|
|
}
|
|
}
|
|
if [virtual_host] {
|
|
ruby {
|
|
code => "event.set('virtual_host_length', event.get('virtual_host').length)"
|
|
}
|
|
}
|
|
if [useragent] {
|
|
ruby {
|
|
code => "event.set('useragent_length', event.get('useragent').length)"
|
|
}
|
|
}
|
|
mutate {
|
|
##add_tag => [ "conf_file_8007"]
|
|
}
|
|
}
|
|
}
|