<?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 Getting too many destination ip addresses.  Need to filter it down to 5 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226518#M96306</link>
    <description>&lt;P&gt;Trying to filter down to 5 search results for the dest section.  &lt;/P&gt;

&lt;P&gt;index=threat_activity threat_match_field=src  threat_match_value=* | iplocation src | transaction threat_match_value |table src dest dest_port threat_key Country orig_sourcetype  | search Country!= "United States" | &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:15:10 GMT</pubDate>
    <dc:creator>ecabrera81</dc:creator>
    <dc:date>2020-09-29T11:15:10Z</dc:date>
    <item>
      <title>Getting too many destination ip addresses.  Need to filter it down to 5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226518#M96306</link>
      <description>&lt;P&gt;Trying to filter down to 5 search results for the dest section.  &lt;/P&gt;

&lt;P&gt;index=threat_activity threat_match_field=src  threat_match_value=* | iplocation src | transaction threat_match_value |table src dest dest_port threat_key Country orig_sourcetype  | search Country!= "United States" | &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226518#M96306</guid>
      <dc:creator>ecabrera81</dc:creator>
      <dc:date>2020-09-29T11:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting too many destination ip addresses.  Need to filter it down to 5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226519#M96307</link>
      <description>&lt;P&gt;Could you provide more details on what the expected output is (and what you're getting right now)?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 14:38:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226519#M96307</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-30T14:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting too many destination ip addresses.  Need to filter it down to 5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226520#M96308</link>
      <description>&lt;P&gt;Thanks for the response.  For output i would like for either src or dest section ip address to display only 5 ip addresses for each section.    As of now i am just scrolling down too many ip addresses.  &lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 14:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226520#M96308</guid>
      <dc:creator>ecabrera81</dc:creator>
      <dc:date>2016-09-30T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting too many destination ip addresses.  Need to filter it down to 5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226521#M96309</link>
      <description>&lt;P&gt;The transaction command is generating those multivalued fields for src and dest ip addresses. There is no option in transaction command to limit how many values to show, so you'd need to use eval expression, after transaction command to limit the number of results to be show. Like this&lt;/P&gt;

&lt;P&gt;For single field (say dest where you want to reduce the number of ip addresses to be shown per event) to be limited to 5 values.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=threat_activity threat_match_field=src threat_match_value=* | iplocation src | transaction threat_match_value |table src dest dest_port threat_key Country orig_sourcetype | search Country!= "United States" | eval dest=mvindex(dest,0,4)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For multiple fields&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=threat_activity threat_match_field=src threat_match_value=* | iplocation src | transaction threat_match_value |table src dest dest_port threat_key Country orig_sourcetype | search Country!= "United States" | foreach src dest [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',0,4) ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Sep 2016 15:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226521#M96309</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-30T15:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting too many destination ip addresses.  Need to filter it down to 5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226522#M96310</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 15:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-too-many-destination-ip-addresses-Need-to-filter-it-down/m-p/226522#M96310</guid>
      <dc:creator>ecabrera81</dc:creator>
      <dc:date>2016-09-30T15:58:35Z</dc:date>
    </item>
  </channel>
</rss>

