Splunk Search
Highlighted

Is there any online regex tool to create regular expressions for given sample data ?

Motivator

Is there any online regex tool to create regular expressions for given sample data ?

Tags (1)
Highlighted

Re: Is there any online regex tool to create regular expressions for given sample data ?

Communicator

I think that it is more a Stack Overflow question, it isn't so much related to Splunk 🙂

BTW, you can take a look here: http://www.txt2re.com/index.php3

Highlighted

Re: Is there any online regex tool to create regular expressions for given sample data ?

There are tools available where you can test your created regex. They also provide short documentation for the most common regex tokens. For example here: link

Also Splunk on his own has the ability to create a regex expression based on examples. Read more here: link

Highlighted

Re: Is there any online regex tool to create regular expressions for given sample data ?

SplunkTrust
SplunkTrust

The Field Extractor app is useful sometimes. Have a look.

http://apps.splunk.com/app/494/

Highlighted

Re: Is there any online regex tool to create regular expressions for given sample data ?

Builder

I belive the best tool for the job is ;

regex101.com .

Simply superb!!

Highlighted

Re: Is there any online regex tool to create regular expressions for given sample data ?

SplunkTrust
SplunkTrust

If you like Regex101 (and I do), but cannot reach it from a customer site or are concerned about sending private data to the internet you can run it offline using a trick from https://github.com/Syskaw/Regex101.com-offline-app/blob/master/runLocalRegex101.sh

Highlighted

Re: Is there any online regex tool to create regular expressions for given sample data ?

Path Finder

This is online tool: http://www.regexr.com/
This is cool interactive tutorial: http://regexone.com/ (20 exercises)

Highlighted

Re: Is there any online regex tool to create regular expressions for given sample data ?

Motivator

My favourite is: http://www.rubular.com

Fast and interactive

Highlighted

Re: Is there any online regex tool to create regular expressions for given sample data ?

Engager

As a regular expression generator (log entry as input, regex as output) you can also use the one under:

http://regex.logxtender.net

It provides a generic regex with URLs, IPs, ports, usernames and so on parsed at some extent.

Highlighted

Re: Is there any online regex tool to create regular expressions for given sample data ?

Engager

The other sites were great for testing, but this one builds a RegEx from your Index data. Very helpful, thanks!

0 Karma