<?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 split time into column and other fields into row? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628599#M218359</link>
    <description>&lt;P&gt;Getting expected results now, thanks much&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 10:56:12 GMT</pubDate>
    <dc:creator>kalaiyarasi</dc:creator>
    <dc:date>2023-01-27T10:56:12Z</dc:date>
    <item>
      <title>How to split time into column and other fields into row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628148#M218208</link>
      <description>&lt;P&gt;|eval TotalApps=if(match('Total',"NTB"),"1","0")&lt;/P&gt;
&lt;P&gt;|eval In-Progress=if('Total'="NTB" AND isnull('APPL_SUB-DATE'),"1","0")&lt;/P&gt;
&lt;P&gt;|eval Submitted=if('Total'="NTB" AND isnotnull('APPL_SUB-DATE'),"1","0")&lt;/P&gt;
&lt;P&gt;|eval My-InfoUsed=if('Total'="NTB" AND isnotnull('APPL_SUB-DATE') AND isnotnull('MY-INF0-CONCUR-FLAG'),"1","0")&lt;BR /&gt;|stats sum(TotalApps) as "Total Apps" sum(In-Progress) as "In Progress" sum(Submitted) as "Apps Submitted" sum(My-InfoUsed) as "My InfoUsed" by Mon-Year&lt;BR /&gt;|transpose Column_name="Category"&lt;/P&gt;
&lt;P&gt;getting results as&lt;BR /&gt;Category&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; row1&lt;/P&gt;
&lt;P&gt;Mon-Year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jan-2023&lt;/P&gt;
&lt;P&gt;Total Apps&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06&lt;/P&gt;
&lt;P&gt;In Progress&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06&lt;/P&gt;
&lt;P&gt;Apps Submitted&amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;My InfoUsed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;But requirement is ,&lt;/P&gt;
&lt;P&gt;Mon-Year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Total&lt;/P&gt;
&lt;P&gt;Jan-2023&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TotalApps&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In Progress&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Apps Submitted&amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; My InfoUsed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 15:12:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628148#M218208</guid>
      <dc:creator>kalaiyarasi</dc:creator>
      <dc:date>2023-01-24T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to split time into column and other fields into row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628157#M218209</link>
      <description>&lt;LI-CODE lang="markup"&gt;|stats sum(TotalApps) as "Total Apps" sum(In-Progress) as "In Progress" sum(Submitted) as "Apps Submitted" sum(My-InfoUsed) as "My InfoUsed" by Mon-Year
| untable Mon-Year Category Total&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Jan 2023 15:26:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628157#M218209</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-24T15:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to split time into column and other fields into row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628283#M218246</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It's working fine and many thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:15:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628283#M218246</guid>
      <dc:creator>kalaiyarasi</dc:creator>
      <dc:date>2023-01-25T14:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to split time into column and other fields into row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628580#M218351</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For your query, getting results like below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Mon-Year&amp;nbsp; &amp;nbsp; &amp;nbsp;Category&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Total&lt;/P&gt;&lt;P&gt;Dec-2022&amp;nbsp; &amp;nbsp; Total Apps&amp;nbsp; &amp;nbsp; &amp;nbsp; 215&lt;/P&gt;&lt;P&gt;Dec-2022&amp;nbsp; &amp;nbsp; In-Progress&amp;nbsp; &amp;nbsp; &amp;nbsp; 200&lt;/P&gt;&lt;P&gt;Dec-2022&amp;nbsp; &amp;nbsp; &amp;nbsp;Submitted&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;152,""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To merge the Mon-Year in Single filed as it contains same value, tried these two options but not getting correct count, kindly help&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;|stats sum(TotalApps) as "Total Apps" sum(In-Progress) as "In Progress" sum(Submitted) as "Apps Submitted" sum(My-InfoUsed) as "My InfoUsed" by Mon-Year&lt;BR /&gt;| untable Mon-Year Category Total&lt;BR /&gt;|stats values(Category) as Category1 values(Total) as Total1 by Mon-Year&lt;/P&gt;&lt;P&gt;For above query, Mon-Year is merged but count is not&amp;nbsp; correct&lt;/P&gt;&lt;P&gt;Also tried below options&lt;BR /&gt;|stats sum(TotalApps) as "Total Apps" sum(In-Progress) as "In Progress" sum(Submitted) as "Apps Submitted" sum(My-InfoUsed) as "My InfoUsed" by Mon-Year&lt;BR /&gt;| untable Mon-Year Category Total&lt;BR /&gt;eval Category='Category' + ";" + 'Total'&lt;BR /&gt;|stats values(Category) as Category2 by Mon-Year&lt;/P&gt;&lt;P&gt;|eval Category1=split(Category2,";")&lt;/P&gt;&lt;P&gt;above query is not splitting. Kindly help to merge the same Date value in Single field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 08:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628580#M218351</guid>
      <dc:creator>kalaiyarasi</dc:creator>
      <dc:date>2023-01-27T08:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to split time into column and other fields into row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628582#M218352</link>
      <description>&lt;P&gt;Values() puts the unique values in lexicographical order, try using list()&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|stats list(Category) as Category1 list(Total) as Total1 by Mon-Year&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 27 Jan 2023 08:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628582#M218352</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-27T08:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to split time into column and other fields into row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628599#M218359</link>
      <description>&lt;P&gt;Getting expected results now, thanks much&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 10:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-time-into-column-and-other-fields-into-row/m-p/628599#M218359</guid>
      <dc:creator>kalaiyarasi</dc:creator>
      <dc:date>2023-01-27T10:56:12Z</dc:date>
    </item>
  </channel>
</rss>

