我試圖創建一個正則表達式來解析Windows日誌事件中的一個句子的一部分。解析句子部分的正則表達式
舉個例子,EVENTCODE = 7035生成以下內容:
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...
我想是和解析出來,只是「將」,「服務」,並在作品開始或停止的信息。
這樣我就可以建立一個服務列表,開始或停止。
有關這方面的想法?
語言是什麼? – nhahtdh
我實際上試圖將它與Splunk一起使用。因此,它將是,EventCode = 7035 |重複消息|正則表達式..... – mrwh1t3