<?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 Re: How do I search the network data model to track certain ports? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-the-network-data-model-to-track-certain-ports/m-p/251047#M74995</link>
    <description>&lt;P&gt;Hi Mitchell,&lt;/P&gt;

&lt;P&gt;A good approach for this is to use the pivot interface, which you can access from settings -&amp;gt; data models -&amp;gt; pivot. In this interface, you can specify the filter or search fields you want, to display the output you are looking for. From there, there is an 'open in search' button that would show you the search string that was used to generate the output. This search string will be based on the 'pivot' command. It will look something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| pivot Network_Traffic All_Traffic count(All_Traffic) AS "Count of All Traffic" SPLITROW action AS action FILTER dest_port = 22 SORT 100 action ROWSUMMARY 0 COLSUMMARY 0 NUMCOLS 0 SHOWOTHER 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Another option is to look at the 'datamodel' search command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| datamodel [] [&amp;lt;object&amp;gt;] []
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is documented here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.9/SearchReference/Datamodel"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.9/SearchReference/Datamodel&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;HTH.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2016 09:37:39 GMT</pubDate>
    <dc:creator>sobrien</dc:creator>
    <dc:date>2016-01-29T09:37:39Z</dc:date>
    <item>
      <title>How do I search the network data model to track certain ports?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-the-network-data-model-to-track-certain-ports/m-p/251046#M74994</link>
      <description>&lt;P&gt;I'm very new to searching data models in Splunk and I want to search within my network data model to monitor certain ports. I know I can use the All_traffic.dest_port, but I can't figure out how to make it work. I want dashboards to track failed and successful logins on devices by tracking these ports. So, I need to track ssh logins on port 22 and rdp logins on 3389. Then I want to create a notable event from this search which I know how to create. I just need help using the data model since I'm new to data models. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-the-network-data-model-to-track-certain-ports/m-p/251046#M74994</guid>
      <dc:creator>Mitchellsch</dc:creator>
      <dc:date>2020-09-29T08:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search the network data model to track certain ports?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-the-network-data-model-to-track-certain-ports/m-p/251047#M74995</link>
      <description>&lt;P&gt;Hi Mitchell,&lt;/P&gt;

&lt;P&gt;A good approach for this is to use the pivot interface, which you can access from settings -&amp;gt; data models -&amp;gt; pivot. In this interface, you can specify the filter or search fields you want, to display the output you are looking for. From there, there is an 'open in search' button that would show you the search string that was used to generate the output. This search string will be based on the 'pivot' command. It will look something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| pivot Network_Traffic All_Traffic count(All_Traffic) AS "Count of All Traffic" SPLITROW action AS action FILTER dest_port = 22 SORT 100 action ROWSUMMARY 0 COLSUMMARY 0 NUMCOLS 0 SHOWOTHER 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Another option is to look at the 'datamodel' search command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| datamodel [] [&amp;lt;object&amp;gt;] []
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is documented here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.9/SearchReference/Datamodel"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.9/SearchReference/Datamodel&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;HTH.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 09:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-the-network-data-model-to-track-certain-ports/m-p/251047#M74995</guid>
      <dc:creator>sobrien</dc:creator>
      <dc:date>2016-01-29T09:37:39Z</dc:date>
    </item>
  </channel>
</rss>

