Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Logging SRC VTA Messages to a Text File


Use this procedure to configure the SRC VTA to save messages, such as event messages, SRC VTA startup messages, errors, and so on, in a text file.

Use the following statement to configure the SRC VTA to save messages in text files:

  1. From configuration mode, access the statement that configures logging to a text file. For example, to configure a logger called vta1-logger for the SRC VTA group called vta1:

  2. Specify the path and filename of the current log file. For example:

    Make sure you have write access to the folder.

  3. (Optional) Specify a filter that determines the type of messages that this log file contains.

    The filter is specified in an expression. The software filters events by evaluating each subexpression from left to right. When the software finds a match, it logs or ignores the message accordingly. You can specify an unlimited number of subexpressions. The order in which you specify the subexpressions affects the result. Expressions have the format:

    singlematch [,singlematch]


    singlematch—[!] ( <category> | ([<category>]/[<severity>] | [<minimumSeverity>]-[<maximumSeverity>] ))

    • !—Do not log matching events.

    • <category>—SRC component that generated the event message. To log only events in a specific category, you can define the category, which is a text string that matches the name of a category. The text string is not case sensitive. For the names of categories, view a log file for a default filter. Juniper Networks Technical Assistance Center (JTAC) can also provide category names.

    • [<severity>] | [<minimumSeverity>]-[<maximumSeverity>]—Name or number in the range 1–127. A higher number indicates a higher severity level. Table 1 shows common severity levels that you can specify by name.

      Table 1: Named Severity Levels


      Severity Level























      You can set up event trail logging for the SRC VTA, which is helpful when debugging the SRC VTA configuration. Event trail logging logs messages that show you exactly how the SRC VTA is handling each event as it passes through the SRC VTA. You can follow a particular event as it passes through the SRC VTA and see exactly how each event handler and action handles that event.

      To set up event trail logging, set the filter option to EventTrail/9-. Enabling event trail logging generates messages such as the following:

      This is only an excerpt of the log and does not show all messages. Notice that each message starts with a unique ID generated when the SRC VTA starts processing an event—for example, “Event trail afe51007-7e35-465b-a515-3be12735afd6.”

      Enabling debug log messages has a negative effect on system performance. Do not enable debug log messages unless JTAC instructs you to do so.

      You can define a severity level as follows:

      • Specify an explicit severity. For example:

        warning—Defines only warning messages

      • Specify a minimum severity and a maximum severity. For example:

        info-warning—Defines messages of minimum severity level of info and a maximum severity level of warning

      • Accept the default minimum (logmin) or maximum (logmax) severity by omitting the minimum or maximum severity. For example:

        info—Defines messages of minimum severity level info and maximum severity level logmax

        warning—Defines messages of minimum severity level logmin and maximum severity level warning

      • Specify no severity to log all event messages.

      • Table 2 shows some examples of filters.

        Table 2: Examples of Filters for Event Messages


        Event Messages Saved


        All event messages


        Event messages of level info and higher from all categories


        Debug events from the SRC VTA category only


        All debug events except those from the SRC VTA category


        All messages from the SRC VTA category, except those from the VtaMsg category with level lower than info

  4. Specify the maximum file size. This option disables or enables and sets the maximum size of the log file and the rollover file.


    The maximum file size is specified in KB. Maximum size of the log file is 10,000,000 KB.

    Do not set the maximum file size to a value greater than the available disk space.

  5. Specify the rollover filename.

    Specify the path and filename of the rollover log file. When the log file reaches the maximum size, the software closes the log file and renames it with the name you specify for the rollover file. If a previous rollover file exists, the software overwrites it. The software then reopens the log file and continues to save event messages in it.

    For example: