# CISCO Nexus Integrations

#### **Overview**

The Cisco Nexus integration allows users to monitor Errors and System Messages. The Cisco Nexus series switches are modular and fixed port network switches designed for the data center. All switches in the Nexus range run the modular NX-OS firmware/operating system on the fabric. NX-OS has some high-availability features compared to the well-known Cisco IOS. This platform is optimized for high-density 10 Gigabit Ethernet.

Use the Cisco Nexus integration to collect and parse data from Syslog and log files. Then visualize that data through search, correlation and visualization within Elastic Security.

---

#### **Data streams**

The Cisco Nexus integration collects one type of data: log.

**Log** consists of errors and system messages. See more details about errors and system messages

---

#### **Requirements**

Elastic Agent must be installed.

The minimum **kibana.version** required is **8.7.0**.

This module has been tested against the **Cisco Nexus Series 9000, 3172T and 3048 Switches**.

---

#### **Setup**

##### **To collect data from Cisco Nexus, follow the below steps:**

##### **Logging System Messages to a File**

<section class="body taskbody" id="bkmrk-you-can-configure-th"><section class="section context" id="bkmrk-you-can-configure-th-1">You can configure the device to log system messages to a file. By default, system messages are logged to the file /logflash/log/<var>logfilename</var> .

</section><div class="tableContainer"><table class="ol steps detailed_steps" style="width: 100%;"><thead><tr><th align="left" style="width: 8.93382%;"> </th><th align="left" style="width: 43.3904%;">Command or Action</th><th align="left" style="width: 47.6758%;">Purpose</th></tr></thead><tbody><tr class="li step"><td align="left" id="bkmrk-step%C2%A01" style="width: 8.93382%;" valign="top">**Step 1**

</td><td align="left" class="step--command" style="width: 43.3904%;" valign="top"><span class="keyword kwd">configure terminal</span>

<section class="itemgroup stepxmp"><section class="tasklabel">#### Example:

</section>```
switch# configure terminal
switch(config)#

```

</section></td><td align="left" class="step--purpose" style="width: 47.6758%;" valign="top"><section class="itemgroup info">Enters global configuration mode.

</section></td></tr><tr class="li step"><td align="left" id="bkmrk-step%C2%A02" style="width: 8.93382%;" valign="top">**Step 2**

</td><td align="left" class="step--command" style="width: 43.3904%;" valign="top">\[ <span class="keyword kwd">no</span> \] <span class="keyword kwd">logging logfile</span> <var>logfile-name severity-level</var> \[ | <span class="keyword kwd">size</span> <var>bytes</var> \]

<section class="itemgroup stepxmp"><section class="tasklabel">#### Example:

</section>```
switch(config)# logging logfile my_log 6

```

</section></td><td align="left" class="step--purpose" style="width: 47.6758%;" valign="top"><section class="itemgroup info">Configures the nonpersistent log file parameters.

<var>logfile-name</var> : Configures the name of the log file that is used to store system messages. Default filename is "message".

<var>severity-level</var> : Configures the minimum severity level to log. A lower number indicates a higher severity level. Default is 5. Range is from 0 through 7:

- 0 – emergency
- 1 – alert
- 2 – critical
- 3 – error
- 4 – warning
- 5 – notification
- 6 – informational
- 7 – debugging

<span class="keyword kwd">size</span> <var>bytes</var> : Optionally specify maximum file size. Range is from 4096 through 4194304 bytes.

</section></td></tr><tr class="li step"><td align="left" id="bkmrk-step%C2%A03" style="width: 8.93382%;" valign="top">**Step 3**

</td><td align="left" class="step--command" style="width: 43.3904%;" valign="top"><span class="keyword kwd">logging event</span> {<span class="keyword kwd">link-status</span> | <span class="keyword kwd">trunk-status</span>} {<span class="keyword kwd">enable</span> | <span class="keyword kwd">default</span>}

<section class="itemgroup stepxmp"><section class="tasklabel">#### Example:

</section>```
switch(config)# logging event link-status default
```

</section></td><td align="left" class="step--purpose" style="width: 47.6758%;" valign="top"><section class="itemgroup info">Logs interface events.

- <span class="keyword kwd">link-status</span> —Logs all UP/DOWN and CHANGE messages.
- <span class="keyword kwd">trunk-status</span> —Logs all TRUNK status messages.
- <span class="keyword kwd">enable</span> —Specifies to enable logging to override the port level configuration.
- <span class="keyword kwd">default</span> —Specifies that the default logging configuration is used by interfaces that are not explicitly configured.

</section></td></tr></tbody></table>

</div></section>---

#### **Configuring Syslog Servers**

**Note:** Cisco recommends that you configure the syslog server to use the management virtual routing and forwarding (VRF) instance. For more information on VRFs, see Cisco Nexus 9000 Series NX-OS Unicast Routing Configuration Guide.

<section class="body taskbody" id="bkmrk-you-can-configure-up"><section class="section context" id="bkmrk-you-can-configure-up-1"><div class="tableContainer">  
</div>You can configure up to eight syslog servers that reference remote systems where you want to log system messages.

</section><section class="tasklabel">#### Procedure

</section><div class="tableContainer"><table class="ol steps detailed_steps" id="bkmrk-%C2%A0-command-or-action-" style="width: 100%;"><thead><tr><th align="left" style="width: 8.46714%;"> </th><th align="left" style="width: 45.5257%;">Command or Action</th><th align="left" style="width: 46.0072%;">Purpose</th></tr></thead><tbody><tr class="li step"><td align="left" style="width: 8.46714%;" valign="top">**Step 1**

</td><td align="left" class="step--command" style="width: 45.5257%;" valign="top"><span class="keyword kwd">configure terminal</span>

<section class="itemgroup stepxmp"><section class="tasklabel">#### Example:

</section>```
switch# configure terminal
switch(config)#
```

</section></td><td align="left" class="step--purpose" style="width: 46.0072%;" valign="top"><section class="itemgroup info">Enters global configuration mode.

</section></td></tr><tr class="li step"><td align="left" id="bkmrk-step%C2%A02-1" style="width: 8.46714%;" valign="top">**Step 2**

</td><td align="left" class="step--command" style="width: 45.5257%;" valign="top">\[<span class="keyword kwd">no</span>\] <span class="keyword kwd">logging server</span> <var>host</var> \[<var>severity-level</var> \[<span class="keyword kwd">use-vrf</span> <var>vrf-name</var>\]\]

<section class="itemgroup stepxmp"><section class="tasklabel">#### Example:

</section>```
switch(config)# logging server 192.0.2.253
```

</section><section class="itemgroup stepxmp"><section class="tasklabel">#### Example:

</section>```
switch(config)# logging server 2001::3 5 use-vrf red
```

</section></td><td align="left" class="step--purpose" style="width: 46.0072%;" valign="top"><section class="itemgroup info">Configures a syslog server at the specified hostname, IPv4, or IPv6 address. You can specify logging of messages to a particular syslog server in a VRF by using the <span class="keyword kwd">use-vrf</span> keyword.<span class="ph"> The <span class="keyword kwd">use-vrf</span> <var>vrf-name</var> keyword identifies the default or management values for the VRF name. The default VRF is the management VRF, by default. However, the <span class="keyword kwd">show-running</span> command will not list the default VRF.</span> Severity levels range from 0 to 7:

- 0 – emergency
- 1 – alert
- 2 – critical
- 3 – error
- 4 – warning
- 5 – notification
- 6 – informational
- 7 – debugging

The default outgoing facility is local7.

The <span class="keyword kwd">no</span> option removes the logging server for the specified host.

The first example forwards all messages on facility local 7. The second example forwards messages with severity level 5 or lower to the specified IPv6 address in VRF red.

</section></td></tr><tr class="li step"><td align="left" id="bkmrk-step%C2%A03-1" style="width: 8.46714%;" valign="top">**Step 3**

</td><td align="left" class="step--command" style="width: 45.5257%;" valign="top"><span class="keyword kwd">logging source-interface loopback</span> <var>virtual-interface</var>

<section class="itemgroup stepxmp"><section class="tasklabel">#### Example:

</section>```
switch(config)# logging source-interface loopback 5
```

</section></td><td align="left" class="step--purpose" style="width: 46.0072%;" valign="top"><section class="itemgroup info">Enables a source interface for the remote syslog server. The range for the <var>virtual-interface</var> argument is from 0 to 1023.

</section></td></tr></tbody></table>

</div></section>**NOTE:**

- Use the Timezone Offset parameter, if the timezone is not present in the log messages.

*If you need further assistance, kindly contact our support at <support@cytechint.com> for prompt assistance and guidance.*