I need to get the user name from the name field. The user name will change it could be jgillman or r.little .... etc
In my logstash conf file I put
mutate {
add_field => { "user" => "%{[windows][perfmon][ica][name]}"}
}
It is .* (anything) followed by a literal (, followed by a capture group () that contains .* (anything), followed by a literal ). That matches the entire string, and the gsub replaces that (the entire string) with \1 (the value of the first capture group, which is everything inside the ( and )).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.