<?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: Need to shorten data and show it by count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-shorten-data-and-show-it-by-count/m-p/342967#M101569</link>
    <description>&lt;P&gt;Hi, try this&lt;BR /&gt;
[your search]   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "^(?:[^=\n]*=){3}(?P&amp;lt;code&amp;gt;\d+)\s+\w+=(?P&amp;lt;method&amp;gt;[^ ]+)(?:[^&amp;amp;\n]*&amp;amp;){8}\w+=(?P&amp;lt;SENDID&amp;gt;\w+)" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and if you need count&lt;BR /&gt;
 | stats count by method SENDID code&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2017 07:57:32 GMT</pubDate>
    <dc:creator>andrey2007</dc:creator>
    <dc:date>2017-12-18T07:57:32Z</dc:date>
    <item>
      <title>Need to shorten data and show it by count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-shorten-data-and-show-it-by-count/m-p/342966#M101568</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am executing query which is giving me the below result and I want to shorten the data and show in table format by total no. of count count. So what I want in table from the below result that is "code=200", "method=GET" and  "SENDID=OSUUSPANKKI". Any insight would be appreciable. Thanks in advance&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;2017-12-18 07:26:50,357 [bwReqId=] [play-akka.actor.default-dispatcher-68163] [INFO ] [application] front-play - time=3ms code=200 method=GET remote_ip=85.76.XX.XX host=XXX.basware.com uri=/invoices/attachment/8fc60422e0de11e792e8f398?VERSION=0001&amp;amp;PMTREFNB=f171abc1-eef1-4cb3-a537-54ae4d638a65&amp;amp;TIMESTMP=2017-12-18-092641%2B02&amp;amp;KEYVERS=0001&amp;amp;ALG=0001&amp;amp;LANGCODE=1&amp;amp;SESSIONID=dGpohCr1yQJe-iKenar-&amp;amp;STATUS=Prod&amp;amp;SENDID=OSUUSPANKKI&amp;amp;PMTORIG=1&amp;amp;USERMAC=4901FF5EC300D405133A757F7FA0245B&amp;amp;MAC=B82F0BEECA1B8680CFD9889A94248EC9&lt;BR /&gt;
&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 07:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-shorten-data-and-show-it-by-count/m-p/342966#M101568</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2017-12-18T07:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need to shorten data and show it by count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-shorten-data-and-show-it-by-count/m-p/342967#M101569</link>
      <description>&lt;P&gt;Hi, try this&lt;BR /&gt;
[your search]   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "^(?:[^=\n]*=){3}(?P&amp;lt;code&amp;gt;\d+)\s+\w+=(?P&amp;lt;method&amp;gt;[^ ]+)(?:[^&amp;amp;\n]*&amp;amp;){8}\w+=(?P&amp;lt;SENDID&amp;gt;\w+)" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and if you need count&lt;BR /&gt;
 | stats count by method SENDID code&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 07:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-shorten-data-and-show-it-by-count/m-p/342967#M101569</guid>
      <dc:creator>andrey2007</dc:creator>
      <dc:date>2017-12-18T07:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need to shorten data and show it by count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-shorten-data-and-show-it-by-count/m-p/342968#M101570</link>
      <description>&lt;P&gt;Could you please let me know how you made this possible by rex as I have tried also but didn't get succeed. Thank you so much&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 11:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-shorten-data-and-show-it-by-count/m-p/342968#M101570</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2017-12-18T11:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to shorten data and show it by count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-shorten-data-and-show-it-by-count/m-p/342969#M101571</link>
      <description>&lt;P&gt;You can do it using drop-down menu clicking Event Actions=&amp;gt;Extract fields with Regex generator to generate regexp.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 12:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-shorten-data-and-show-it-by-count/m-p/342969#M101571</guid>
      <dc:creator>andrey2007</dc:creator>
      <dc:date>2017-12-18T12:15:47Z</dc:date>
    </item>
  </channel>
</rss>

