<?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 Using stats to organise repetitive data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-stats-to-organise-repetitive-data/m-p/360847#M106647</link>
    <description>&lt;P&gt;I have a set of data as below:&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/228695-screen-shot-2018-02-08-at-93225-am.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;If you can see, the TagNames are repetitive. I would want to re-arrange it to below format&lt;/P&gt;

&lt;P&gt;TagName                                       LimitString1                              LimitString2                          LimitString3 .. . . . . . . . . .&lt;BR /&gt;&lt;BR /&gt;
CHEM_R13719                                   null                                              18&lt;BR /&gt;
CHEM_R13720                                   null                                               01&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
CHEM_R13723                                     0                                                4940&lt;/P&gt;

&lt;P&gt;May I know how can I use stats command to achieve this? Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:58:48 GMT</pubDate>
    <dc:creator>leonheart78</dc:creator>
    <dc:date>2020-09-29T17:58:48Z</dc:date>
    <item>
      <title>Using stats to organise repetitive data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-stats-to-organise-repetitive-data/m-p/360847#M106647</link>
      <description>&lt;P&gt;I have a set of data as below:&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/228695-screen-shot-2018-02-08-at-93225-am.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;If you can see, the TagNames are repetitive. I would want to re-arrange it to below format&lt;/P&gt;

&lt;P&gt;TagName                                       LimitString1                              LimitString2                          LimitString3 .. . . . . . . . . .&lt;BR /&gt;&lt;BR /&gt;
CHEM_R13719                                   null                                              18&lt;BR /&gt;
CHEM_R13720                                   null                                               01&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
CHEM_R13723                                     0                                                4940&lt;/P&gt;

&lt;P&gt;May I know how can I use stats command to achieve this? Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-stats-to-organise-repetitive-data/m-p/360847#M106647</guid>
      <dc:creator>leonheart78</dc:creator>
      <dc:date>2020-09-29T17:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using stats to organise repetitive data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-stats-to-organise-repetitive-data/m-p/360848#M106648</link>
      <description>&lt;P&gt;Try...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Your search
| eval LimitString=coalesce(LimitString,"")
| stats count by TagName LimitString
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Feb 2018 01:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-stats-to-organise-repetitive-data/m-p/360848#M106648</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-02-08T01:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using stats to organise repetitive data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-stats-to-organise-repetitive-data/m-p/360849#M106649</link>
      <description>&lt;P&gt;Unfortunately, the output is not what I required. Basically, we need to sort the values in LimitString, into the respective TagName. I was reading up on the "bin" command, not sure it would help in getting what I wanted.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 01:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-stats-to-organise-repetitive-data/m-p/360849#M106649</guid>
      <dc:creator>leonheart78</dc:creator>
      <dc:date>2018-02-09T01:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using stats to organise repetitive data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-stats-to-organise-repetitive-data/m-p/360850#M106650</link>
      <description>&lt;P&gt;It seems you are looking for something like this:&lt;BR /&gt;
index=.... | stats list(LimitString) as "Limit String" by TagName&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 06:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-stats-to-organise-repetitive-data/m-p/360850#M106650</guid>
      <dc:creator>utk123</dc:creator>
      <dc:date>2018-02-12T06:00:29Z</dc:date>
    </item>
  </channel>
</rss>

