|
Before really putting my custom regex in transforms.conf, is there a quick way to test and debug it? |
|
I usually use Good point about
(10 Sep '10, 17:31)
Lowell ♦
|
|
Use the rex command: ..... | rex "" | ....., For example use the following regex to extract indexes.conf into the conf_file variable in the following event:
i assume you are talking about using the splunk command line, are you? how do i invoke the splunk command line? (sorry for sounding so n00by! installed splunk only yesterday :p )
(30 Jul '10, 15:00)
njathan
Searching the internal index for regex extraction processor errors may help too. Like so... index=_internal regexExtractionProcessor ERROR 7:59:13.931 AM
(30 Jul '10, 15:15)
rroberts
@njathan - I was talking about testing the regex using the rex search command - either from splunk's search UI or CLI
(24 Aug '10, 23:24)
Ledion Bitincka ♦
|
|
You may also want to look at Kodos (free) or RegexBuddy (commercial). I normally end up using Kodos for testing. The only down side is that it uses Python regular expression syntax instead of pcre-style regular expressions. The only difference I've see are: (1) You have to add a
(10 Sep '10, 17:27)
Lowell ♦
|
