<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to create a table to show port status of Cisco switch? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407937#M72346</link>
    <description>&lt;P&gt;Cisco has been configured and sent syslog to Splunk as follows:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6872i5C21A53DABBD1BD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I would like a table to show port status of Cisco switch with format as follows:&lt;BR /&gt;
Interface                            status       count&lt;BR /&gt;
GigabitEthernet1/0/27   up          1&lt;BR /&gt;
GigabitEthernet1/0/27   down    1&lt;BR /&gt;
GigabitEthernet2/0/2            up          3&lt;BR /&gt;
GigabitEthernet2/0/2             down   3&lt;BR /&gt;
GigabitEthernet2/0/1              up            1&lt;BR /&gt;
GigabitEthernet2/0/1          down       0&lt;/P&gt;

&lt;P&gt;Can someone help to complete the search below (or come with some regex) to achieve this? great thanks!&lt;/P&gt;

&lt;P&gt;(sourcetype=cisco ("%LINK-3") AND ("changed state to up" OR "changed state to administratively up")) OR (sourcetype=cisco ("%LINK-3") AND ("changed state to down" OR "changed state to administratively down")) | table Interface,  status, count ???&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 08:24:28 GMT</pubDate>
    <dc:creator>splunkbeginner</dc:creator>
    <dc:date>2019-04-15T08:24:28Z</dc:date>
    <item>
      <title>how to create a table to show port status of Cisco switch?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407937#M72346</link>
      <description>&lt;P&gt;Cisco has been configured and sent syslog to Splunk as follows:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6872i5C21A53DABBD1BD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I would like a table to show port status of Cisco switch with format as follows:&lt;BR /&gt;
Interface                            status       count&lt;BR /&gt;
GigabitEthernet1/0/27   up          1&lt;BR /&gt;
GigabitEthernet1/0/27   down    1&lt;BR /&gt;
GigabitEthernet2/0/2            up          3&lt;BR /&gt;
GigabitEthernet2/0/2             down   3&lt;BR /&gt;
GigabitEthernet2/0/1              up            1&lt;BR /&gt;
GigabitEthernet2/0/1          down       0&lt;/P&gt;

&lt;P&gt;Can someone help to complete the search below (or come with some regex) to achieve this? great thanks!&lt;/P&gt;

&lt;P&gt;(sourcetype=cisco ("%LINK-3") AND ("changed state to up" OR "changed state to administratively up")) OR (sourcetype=cisco ("%LINK-3") AND ("changed state to down" OR "changed state to administratively down")) | table Interface,  status, count ???&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 08:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407937#M72346</guid>
      <dc:creator>splunkbeginner</dc:creator>
      <dc:date>2019-04-15T08:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a table to show port status of Cisco switch?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407938#M72347</link>
      <description>&lt;P&gt;Hey @splunkbeginner if your logs are always in the same format you can extract the field using rex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search |rex field=_raw "Interface (?&amp;lt;Interface&amp;gt;[A-Za-z0-9_/.-]*)" | rex field=_raw "to (?&amp;lt;status&amp;gt;\w+)" | stats count by Interface,status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this will help!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 10:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407938#M72347</guid>
      <dc:creator>riddhichandaran</dc:creator>
      <dc:date>2019-04-15T10:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a table to show port status of Cisco switch?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407939#M72348</link>
      <description>&lt;P&gt;Install and configure the Cisco Networks Add-on and Cisco Networks App, both available from Splunkbase. You will get all the extractions and the overview page has the search you need in a panel called Port Flapping. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 12:35:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407939#M72348</guid>
      <dc:creator>mikaelbje</dc:creator>
      <dc:date>2019-04-15T12:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a table to show port status of Cisco switch?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407940#M72349</link>
      <description>&lt;P&gt;Thanks, in fact i did install both Cisco Networks Add-on and Cisco Networks App.&lt;/P&gt;

&lt;P&gt;But there seems no outputs at all. Please see their configurations below:&lt;BR /&gt;
&lt;A href="https://imgur.com/ftwtoZj"&gt;https://imgur.com/ftwtoZj&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://imgur.com/ftwtoZj" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 01:35:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407940#M72349</guid>
      <dc:creator>splunkbeginner</dc:creator>
      <dc:date>2019-04-16T01:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a table to show port status of Cisco switch?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407941#M72350</link>
      <description>&lt;P&gt;Your sourcetype is cisco whereas the add-on requires it to be cisco:ios&lt;/P&gt;

&lt;P&gt;See if changing it helps. &lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 04:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407941#M72350</guid>
      <dc:creator>mikaelbje</dc:creator>
      <dc:date>2019-04-16T04:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a table to show port status of Cisco switch?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407942#M72351</link>
      <description>&lt;P&gt;thx again. in fact I did change it already. In the screenshot I attached, I have changed it as follows:&lt;/P&gt;

&lt;P&gt;Name:  Search string:&lt;BR /&gt;
cisco_ios sourcetype=cisco&lt;/P&gt;

&lt;P&gt;but it somehow does not work at all&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 04:09:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407942#M72351</guid>
      <dc:creator>splunkbeginner</dc:creator>
      <dc:date>2019-04-16T04:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a table to show port status of Cisco switch?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407943#M72352</link>
      <description>&lt;P&gt;thanks riddhichandarana, it certainly helps!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 04:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407943#M72352</guid>
      <dc:creator>splunkbeginner</dc:creator>
      <dc:date>2019-04-16T04:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a table to show port status of Cisco switch?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407944#M72353</link>
      <description>&lt;P&gt;You need to set the sourcetype to &lt;STRONG&gt;cisco:ios&lt;/STRONG&gt; upon ingesting the data in Splunk. Do it on the input you defined. &lt;/P&gt;

&lt;P&gt;Notice that it is cisco colon ios&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 04:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407944#M72353</guid>
      <dc:creator>mikaelbje</dc:creator>
      <dc:date>2019-04-16T04:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a table to show port status of Cisco switch?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407945#M72354</link>
      <description>&lt;P&gt;thx mikaelbje, it does work now.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 07:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-create-a-table-to-show-port-status-of-Cisco-switch/m-p/407945#M72354</guid>
      <dc:creator>splunkbeginner</dc:creator>
      <dc:date>2019-04-16T07:31:36Z</dc:date>
    </item>
  </channel>
</rss>

