(Comment not an Answer - comment field not big enough)
I was just playing with the "Interactive field extractor" with the live data, and realised that not all data has the format of above.
Some hosts are sending data with their ip address inplace of the hostname, See second example below.
2014-06-23T15:47:06.974558+10:00 dov-asa5540-ra-6d-01.company.com.au %ASA-6-302014: Teardown TCP connection 276095923 for outside:10.10.169.155/3125 to inside:10.68.3.12/8080 duration 0:00:00 bytes 17152 TCP FINs (carolt)
2014-06-23T15:47:06.939720+10:00 10.121.156.10 %ASA-4-106023: Deny tcp src inside:10.250.168.104/51617 dst outside:23.146.27.163/80 by access-group "inside_access_in" [0xbe9efe96, 0x0]
So a minor change of plans.
I need a regex to pull from after the first white space to the start of the second white space, and regardless of if it's an ip or FQDN then use that as the hostname..
... View more