23.4. The Log Explorer

The InControl client provides extensive tools for looking at both real-time ILA logging and examining the log event history kept in the ILA database. To start doing either, press the top part of the Log Explorer button.

Provided an ILA instance exists, the Log Explorer tab will open.

Building Log Queries

The Query Builder is displayed as part of the Log Explorer tab and it allows log queries to be constructed and saved.

Select the Add option to choose which firewalls will be included in the query. In the example below, only one firewall is selectable and it is called SG50-492.

When selected, this firewall now becomes part of the query.

Multiple firewalls can be added to the list of firewalls for the query.

Displaying ILA Log Messages in Real-time

To show the logging that is taking place to an ILA server from the selected firewalls in real-time, press the Change link for Time Span and select Real Time from the menu.

Running the Query

The above steps defined a simple query which was showing real-time logging for a particular firewall. Once a query is defined, it needs to be executed and this is done by pressing the Run button in the toolbar.

The results of the query are then displayed in a list. Below is an example of this output.

[Tip] Tip: Different severities have different background colors

Different severities are shown with different background colors. For example, events with severity Error appears with an orange background and severity Warning has a yellow background.

By clicking on any line in the query output, the details of the individual log message can be displayed in a separate lower pane. Below is an example which corresponds to the highlighted line in the previous image.

In addition, it is possible to copy to the clipboard information relating to a particular value in the details pane by right-clicking it and choosing one the options from the context menu that is displayed. Below is an example.

Note that the context menu feature will not work on all message fields, only those which make data available such as IP address fields.

Also note that the under the log message detail pane is a status line that displays useful summary information about the query, both while it runs and after it completes. This includes information about the amount of data processed and the time window that was scanned.

If required, the hex version of the log message can be viewed by selecting the Packet Dump tab. An example is shown below.

Displaying Logs Using Relative Time

Instead of the real-time option, relative time can be selected.

This view of log messages looks backwards from the current time. A drop-down menu is used to select the desired unit of time and a slider control is used to select the number of the chosen time unit.

Displaying Logs Using a Time Span

The time span option allows the display of all logs in a specific time range.

This view of log messages looks backwards to a specific time range which is specified using two date fields.

Adding Filters

Except for real-time log display, other options have the potential to display large numbers of log messages. This is usually always the case if the All Logs option is chosen.

To refine the displayed logs further, the Filter option can be chosen so that one of more filter data types can be matched against specific criteria. When the option is chosen, a data type can be selected from a large menu of choices.

After a filter data type is chosen, a boolean operator and a value can then be specified. In the example below, the action must equal Allow for the log message to be displayed.

The applied filter can consist of several boolean expressions for different types of data. Below, a second condition to be added to filter out messages that have a severity equal to Warning.

If there is than one filter condition, they can be combined either with a logical AND or a logical OR depending on the selection made from the combination choices.

Creating Queries from IP Rule Set Entries

An alternative, and sometimes more convenient method of creating a log explorer query is directly from cOS Core IP rule set entries. This is done with the following steps:

  1. Right click an IP rule set entry and select the New Log Query option.

  1. A dialog opens which allows any of the properties of the IP rule set entry to be selected to create a new log explorer query.

  1. After confirming the dialog above, the selection is displayed in the normal query builder so it can be run or modified further.

Setting the Time Zone

When using the log explorer, the datestamp times shown on log messages will be displayed in terms of the Log Explorer tab's current Time Zone setting. Similarly, a time interval in a query should be specified in terms of this time zone.

By default, a Log Explorer tab's current time zone is taken from the InControl client's host Windows system. However, the time zone can be changed so that the times on log messages are displayed in terms of an alternative zone and any time ranges entered in queries can also be entered in terms of that new zone. The current time zone is displayed by a drop-down box in the toolbar ribbon for the log explorer, along with the alternative choices.

The following should be noted about the log explorer time zone setting:

Country Flags on IP Addresses

It should be noted that when displaying IP addresses in the log explorer query results, it could contain an icon and details about which country a particular IP belongs to. The requirement to display this information is if the relevant log contains GeoIP information. If the information is available, a country flag will be placed next to the IP address as shown in the example below, a generic gray network flag is used for private IP addresses.

To further clarify, GeoIP must be configured and used in cOS Core in order to display the country flags.

Exporting Log Query Results to a File

Once a query has run, the results of that query can then be exported to a file in one of a number of formats.The export option can be found in the log explorer's toolbar ribbon.

The options available are:

When exporting to a file, selections of certain report rows can be made first by using mouse clicks with the Ctrl button depressed. When the export is performed, the InControl client will now ask if only the selected rows should be exported or the entire report.

Saving a Log Explorer Query

The most recent log explorer query can be saved so that it can be quickly run again. This is done by selecting the Save option in the toolbar ribbon, or alternatively the Save as option.

The following should be noted about saving queries:

How to open a saved query is discussed next.

Opening a Saved Query or Saved Report

The Open button in the log explorer toolbar ribbon provides the ability to open a previously saved query or a report saved in the proprietary .fwl format.

In more detail, the two menu options are:

Note that, like log analyzer queries, log explorer queries can also be opened through the Library Browser which is described in Chapter 24, The Library Browser.