Example rex Expressions

This section contains several sample examples for extracting different types of information from an event. The specificity of the information extracted increases with each example. Use these examples as a starting point for creating rex expressions to suit your needs. Also, use the Regex Helper tool that simplifies rex expression creation.

The following event examples illustrate how different rex expressions extract information.

Example One

The following rex example uses this event for illustration:

Example Two

The following rex example uses this event for illustration:

Example Three

The following rex example uses this event for illustration:

127.0.0.1 - name [10/Oct/2010:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"

Example Four

The following rex example uses this event for illustration: