I am trying to create a regex that will parse a portion of a sentence within a Windows Log event.
As an example, EventCode=7035 generates the following:
The Network Location Awareness (NLA) service was.....sent a start
The Network Connection service was....sent a stop
The HTTP service was....sent a start
The HTTP service was....sent a stop
etc...
What I would like to parse out is, just the information between “The” and “service” and also the works start or stop.
That way I can build a list of services there were started or stopped.
Thoughts on this?
I used Splunk Interactive field extractor.
Use following regex in your search as
For Service type
For Service Status
Use fields “ServiceType” and “ServiceStaus” for further result and charting.
\s is for space or can use actual space ” “.