I'm doing a search for server names and will eventually extract to to a csv. However, each result comes out as one of the following
How can I change the results in that particular field to be just servername? I feel like this is where regular expressions may come in to play.
I was able to figure out the issue without regex - I was looking at the wrong field. Thank you for the help,
Try something like this
| rex field=particular "\w+:(?<servername>\w+)\.)"
Unfortunately that didn't work. The field results still come out the same. But I noticed they come out in a few different ways:
servername.domain: servername.domain
servername: servername.domain
servername: servername
Please share some sample events in a code block </> since normal pasting can alter the (white-space) formatting.
I was able to figure out the issue without regex - I was looking at the wrong field. Thank you for the help,