Create a Label

Oracle Log Analytics offers multiple out-of-the-box labels for select log sources. You can use these labels to tag the log entries in your log sources. In the following Cisco ASA Logs log source example, the highlighted out-of-the-box labels and more are provided by Oracle Log Analytics for ready use.

However, if you can’t find the labels that you’re looking for, create custom labels that can be used in log sources to tag the log entries, based on defined conditions. To create a label:

  1. From Oracle Log Analytics, click the OMC Navigation (open menu icon) icon on the top left corner of the interface. In the OMC Navigation bar, click Administration Home.
  2. In the Labels section, click Create Label.
    Alternatively, in the Labels section, you can click the available number of labels link and then in the Labels page, click Create.
  3. In the Label field, enter the label name. For example, enter Gateway Timeout.
  4. In the Description field, enter the details about the label. For example, enter Java exception encountered.
  5. To assign priority to the label:
    1. Under Denotes Problem field, select Yes check box.

    2. In the Problem Priority field, click the down arrow and select a priority. For example, select High.

    If you want to be able to filter the logs in the Log Explorer using the Show Problem Logs Only option, then you must assign a priority level to the problem. The problem logs are determined in the search based on the label definition of the log source which has the problem priority set. If the priority is not set, then a potential problem log may not be marked as one.

  6. In the Related Terms field, enter the terms that are related to the log entry.
  7. Click Save.
You can now use the new custom label in your log source to tag a log entry. See Use Labels in Log Sources.
After the custom labels are associated with the log sources, you can search the log data based on the labels that you’ve created. See Filter Logs by Labels. The labels can be used for search as in the following example use-cases: