From Splunk Wiki

Jump to: navigation, search

Splunk uses the Perl Compatible Regular Expression library to implement its regular expressions. This project has its home at . The code originally comes form the Exim mail server (MTA).

Most modern regex implementations have a great deal in common, so your best resources for these are generic internet or press sources which document them in an accessible fashion.

The following are some links to get started:

PCRE man page -- obviously the expressions itself are relevant, but programming with them is not, since Splunk is already written.

Wikipedia page on the project, which identifies the (minor) differences between PCRE and perl 5.

An introduction to perl regexes, generally, though this has the problem of focusing significantly on perl examples, rather than the expressions themselves.

The authors of the PCRE library (the exim project) refer to oreilly documentation:

Many customers have been happy with the basic, dense presentation found in this cheatsheet:

You can test your regex at:

Personal tools
Hot Wiki Topics

About Splunk >
  • Search and navigate IT data from applications, servers and network devices in real-time.
  • Download Splunk