<?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: Creating a SubHeading in Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326189#M164624</link>
    <description>&lt;P&gt;Splunk doesn't support sub heading/2nd row column in headers. One thing you can try will be to add the date into the column names so that you can differentiate the columns by date. Like this (the regular expression on rex command was truncated, make sure you select Splunk query and press Ctrl+K to format the code next time).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=* host="xxx" sourcetype="csv" | rex field=source "(?:[^_]_){2}(?.*).txt"| chart list(ITEM) as items list(SOH_DIFF) as soh_diff list(UNAVAILABLE_QTY_DIFF) as uqd by sourcetype date |table* items, *soh_diff,*uqd
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 04 Dec 2017 19:17:25 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-12-04T19:17:25Z</dc:date>
    <item>
      <title>Creating a SubHeading in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326186#M164621</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How do I go about creating a subheading in splunk. My table is in the following format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;         Date1            Date2
ITEM | DIFF | DIFF2   | DIFF | DIFF2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Essentially, I have data for DIFF and DIFF2 for day 1, and then the same for day2. &lt;/P&gt;

&lt;P&gt;Currently, It's like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ITEM| DIFF | DIFF2 | DIFF | DIFF2 | Date
                                   04/12/2017
                                                               04/12/2017
                                                               04/12/2017
                                                               04/12/2017
                                                               04/12/2017
                                                               04/12/2017
                                                               04/12/2017
                                                               04/12/2017
                                                               04/12/2017
                                                               04/12/2017
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can someone help me with this please or direct me to an alternative solution to this problem?&lt;/P&gt;

&lt;P&gt;Thanks                                                              &lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 13:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326186#M164621</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-12-04T13:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SubHeading in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326187#M164622</link>
      <description>&lt;P&gt;@mahbs, can you add screenshot for expected output and also your current query?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 14:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326187#M164622</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-04T14:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SubHeading in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326188#M164623</link>
      <description>&lt;P&gt;I'm not able to because I don't have enough points. This is my current query:&lt;BR /&gt;
    source=* host="xxx"  sourcetype="csv" |   rex field=source "(?:[^_]&lt;EM&gt;_){2}(?&lt;DATE&gt;.&lt;/DATE&gt;&lt;/EM&gt;).txt"| stats list(ITEM) as items list(SOH_DIFF) as soh_diff list(UNAVAILABLE_QTY_DIFF) as uqd by date |table items, soh_diff,uqd,date&lt;/P&gt;

&lt;P&gt;The output is numerical values.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326188#M164623</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2020-09-29T17:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SubHeading in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326189#M164624</link>
      <description>&lt;P&gt;Splunk doesn't support sub heading/2nd row column in headers. One thing you can try will be to add the date into the column names so that you can differentiate the columns by date. Like this (the regular expression on rex command was truncated, make sure you select Splunk query and press Ctrl+K to format the code next time).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=* host="xxx" sourcetype="csv" | rex field=source "(?:[^_]_){2}(?.*).txt"| chart list(ITEM) as items list(SOH_DIFF) as soh_diff list(UNAVAILABLE_QTY_DIFF) as uqd by sourcetype date |table* items, *soh_diff,*uqd
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Dec 2017 19:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326189#M164624</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-04T19:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SubHeading in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326190#M164625</link>
      <description>&lt;P&gt;Edit your post and reformat the text so that the alignment is correct and maybe we can understand what you need.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 02:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326190#M164625</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-05T02:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SubHeading in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326191#M164626</link>
      <description>&lt;P&gt;Thank you! It worked&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 08:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326191#M164626</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-12-05T08:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a SubHeading in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326192#M164627</link>
      <description>&lt;P&gt;@mahbs, please accept the answer to mark this question as answered.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 10:02:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-SubHeading-in-Splunk/m-p/326192#M164627</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-05T10:02:52Z</dc:date>
    </item>
  </channel>
</rss>

