I’ve read the Extractors documentation a couple of times, but I’d appreciate some additional assistance.
I get Windows Eventlogs into Graylog using Windows Event Forwarding, almost everything works fine, but I have one Eventlog where the full_message contains (such as):
Time : 19. 05. 1918 19:11
Entry Location : HKLM\Software\Classes*\ShellEx\PropertySheetHandlers
Entry : OLE Docfile Property Page
Enabled : enabled
Category : Explorer
Profile : NT AUTHORITY\SYSTEM
Description : OLE DocFile Property Page
Signer : (Verified) Microsoft Windows
Company : Microsoft Corporation
Image Path : c:\windows\system32\docprop.dll <file:///c:/windows/system32/docprop.dll>
Version : 10.0.17134.1
Launch String : HKCR\CLSID{3EA48300-8CF6-101B-84FB-666CCB9BCD32}
VT detection : 0|70
VT permalink : VirusTotalhttps://www.virustotal.com/file/e7b9e572c756fa36ec154401dc5beb319eecd394f051d786d7eb8329b578fc14/analysis/
MD5 : BB1729B0AB7912D3E4A2FCF934C79C79
SHA-1 : FB6C411009B06DB2F4B0B8711783C005CD8050A5
PESHA-1 : 208028A892B5BE9274318602BC6CB9C61C6074FF
PESHA-256 : 3DB0EEC32C9F634CCEB2352583C495486B3AE1D4E73485EC6C3BB11CB65471F6
SHA-256 : E7B9E572C756FA36EC154401DC5BEB319EECD394F051D786D7EB8329B578FC14
IMP : 627AEDCEB4C24CADF889C7BC2C0BD623
I’d ideally like to have each line as a separate field and everything after : as the data.
How, if possible provide the code, example, would I go about doing so?
Unfortunately, I haven’t solution for this, but please share the Windows and graylog side settings how you do that. I’m also interested in it.
//It is a modified message? At the first line, the date is so interesting.
You can use below grok pattern to extract out the required information from message and set them as fields using graylog pipeline set_fields function. To test the effect of this grok pattern processing on the message you can use grokdebug.herokuapp.com
I wanted to go with extractors as well, since they seem to be much easier to work with then the pipeline, but receive “We were not able to run the grok extraction. Please check your parameters.”
If I test with just %{WORD} : %{GREEDYDATA:time} it works, if I test with %{WORD} : %{GREEDYDATA:time}\n%{DATA} I get the error.
Hello everyone, as mentioned in the original post, I think an extractor and a working GROK pattern would be the way to go. I just can’t get it to work. The one @anmolsharma provided was probably close, but I was getting ““We were not able to run the grok extraction. Please check your parameters.””