Syslog Options
Use this information to send system log messages to local files, external hosts, users, or the console. Also configure content types, archive settings, and more.
| Field | Description |
|---|---|
| Add File |
Use the Add File link to specify a named file in the local file system. Syslog messages that match the specified criteria will be sent to this file. Cycle through this process as needed to specifying multiple files for different matching criteria. |
| File Name | Enter a name for the file. |
| Match | To filter messages, enter a text string. Only log messages that contain this string will be saved to the specified file. |
| Explicit Priority | Select this option to include priority information in the file. |
| Structured Data | Select this option to use structured-data format instead of the standard Junos OS format. Structured-data format provides more information without adding significant length, and makes it easier for automated applications to extract information from a message. |
| Archive | Set the maximum number of files to store, and the maximum file size in megabytes (m) or bytes. |
| Contents | To specify the types of log information to capture, click
Add Content, select the
Facility and the
Level, and then click the check mark in the Add
Content title bar. Repeat as needed until you've specified all the
content that you want to capture. Only logs that meet these conditions
will be saved to the specified file. For more information about the content options, see Table 4 later in this topic. |
| Field | Description |
|---|---|
| Add Host |
Use the Add Host link to specify an external server that is configured as a system log message host. Syslog messages that match the specified criteria will be sent to this server. Cycle through this process as needed to specifying multiple hosts for different matching criteria. |
| File Name | Enter a name for the file. |
| Match | To filter messages, enter a text string. Only log messages that contain this string will be saved to the specified file. |
| Explicit Priority | Select this option to include priority information in the file. |
| Structured Data | Select this option to use structured-data format instead of the standard Junos OS format. Structured-data format provides more information without adding significant length, and makes it easier for automated applications to extract information from a message. |
| Archive | Set the maximum number of files to store, and the maximum file size in megabytes (m) or bytes. |
| Contents | To specify the types of log information to capture, click
Add Content, select the
Facility and the
Level, and then click the check mark in the Add
Content title bar. Repeat as needed until you've specified all the
content that you want to capture. Only logs that meet these conditions
will be saved to the specified file. For more information about the content options, see Table 4 later in this topic. |
| Field | Description |
|---|---|
| Add User (link) | On the Users tab, you're sending log
messages to the terminal session of one or more users. To add a user,
click this link, and the enter the user information. Cycle through this process as needed to specifying multiple users for different matching criteria. |
| User | Enter one or more usernames, separated by spaces, or enter an asterisk (*) to include all users. |
| Match | To filter messages, enter a text string. Only log messages that contain this string will be sent to the specified users. |
| Contents | To specify the log information to capture for this user, click
Add Content, select the
Facility and the
Level, and then click the check mark in the Add
Content title bar. Repeat as needed until you've specified all the
content that you want to capture. Only logs that meet these conditions
will be sent to the specified users. For more information about the content options, see Table 4 later in this topic. |
| Field | Description |
|---|---|
| Add Content (link) | Use the Add Content link to specify the types
of log messages to capture. You'll cycle through this process multiple
times to add different content types. For example, let's say you want to
capture (1) critical authorization events, (2) warnings for
authorization events, (3) critical change logs, (4) change log errors,
and (5) ftp errors. For this example, you'd create five content
types. Note: You can add content types in a few
different places. For example, if you're working on the Console tab,
you're specifying the
content to send to the console. If you're working on the User tab,
you're specifying the content to capture for that user.
|
| Facility | Select a log event that you want to capture in this content type. |
| Level | For the specified log event, select the severity level to capture in this content type. |
| Field | Description |
|---|---|
| Files | Specify the maximum number of files (1-1000) to store in the system log. After this maximum is reached, log messages are archived. |
| Size | Specify the maximum size (65536 - 1073741824) of the system log. Select either m (megabytes) or bytes. After this maximum is reached, log messages are archived. |
| Field | Description |
|---|---|
| Time Format | Use this option to include the milliseconds, the year, or both in the
syslog timestamps.
|
| Routing Instance |
By default, system logging traffic is sent from the management interface on your device and its associated routing instance. However, the Junos syslog client is completely VRF aware. If a server is reachable through a virtual routing and forwarding (VRF) instance, the syslog client can send log messages to the server. Use this option to specify a routing instance to use. |
| Network |
Use this option to specify a network instance to use. |