<?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 to generate a search to display the count of a field based on filepath extensions? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-display-the-count-of-a-field-based/m-p/319389#M95499</link>
    <description>&lt;P&gt;that worked thanks a lot &lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2017 10:54:47 GMT</pubDate>
    <dc:creator>rvinjana</dc:creator>
    <dc:date>2017-02-27T10:54:47Z</dc:date>
    <item>
      <title>How to generate a search to display the count of a field based on filepath extensions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-display-the-count-of-a-field-based/m-p/319387#M95497</link>
      <description>&lt;P&gt;I have a search with multiple extensions in a field which, i want to group details based on the extensions in filepath and also count based on the extensions in the filepath &lt;/P&gt;

&lt;P&gt;devicename time  fileHash  filePath=.txt , .exe , .js etc  &lt;/P&gt;

&lt;P&gt;any help would be appreciated &lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 05:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-display-the-count-of-a-field-based/m-p/319387#M95497</guid>
      <dc:creator>rvinjana</dc:creator>
      <dc:date>2017-02-27T05:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to display the count of a field based on filepath extensions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-display-the-count-of-a-field-based/m-p/319388#M95498</link>
      <description>&lt;P&gt;Just tried with a small subset. Have a try using your dataset and let us know the results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal| stats count by source| rex field=source "\.(?&amp;lt;extn&amp;gt;[^\\\|^\/|^\.]+$)"| stats count by extn
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so in your case, the actual search would be something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt;  | rex field=filePath "\.(?&amp;lt;extn&amp;gt;[^\\\|^\/|^\.]+$)"| stats count by extn
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Feb 2017 10:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-display-the-count-of-a-field-based/m-p/319388#M95498</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-02-27T10:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to display the count of a field based on filepath extensions?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-display-the-count-of-a-field-based/m-p/319389#M95499</link>
      <description>&lt;P&gt;that worked thanks a lot &lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 10:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-display-the-count-of-a-field-based/m-p/319389#M95499</guid>
      <dc:creator>rvinjana</dc:creator>
      <dc:date>2017-02-27T10:54:47Z</dc:date>
    </item>
  </channel>
</rss>

