<?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: Help with forming a table with sourcename next to the first column for each row? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371578#M109345</link>
    <description>&lt;P&gt;not really claer what you want, can you give a sample of what your table looks like currently and how you would want it to appear?&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2017 15:06:00 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2017-10-02T15:06:00Z</dc:date>
    <item>
      <title>Help with forming a table with sourcename next to the first column for each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371575#M109342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm searching multiple sources in a single index and getting the results as a table. I want to display the sourcename next to the first column for each row. How can I do that ?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 13:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371575#M109342</guid>
      <dc:creator>charanramireddy</dc:creator>
      <dc:date>2017-10-02T13:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forming a table with sourcename next to the first column for each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371576#M109343</link>
      <description>&lt;P&gt;You mean like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt; | table foo source ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Oct 2017 14:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371576#M109343</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-10-02T14:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forming a table with sourcename next to the first column for each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371577#M109344</link>
      <description>&lt;P&gt;yes but &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;table  "prior column names" source 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;shows empty column for source.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 14:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371577#M109344</guid>
      <dc:creator>charanramireddy</dc:creator>
      <dc:date>2017-10-02T14:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forming a table with sourcename next to the first column for each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371578#M109345</link>
      <description>&lt;P&gt;not really claer what you want, can you give a sample of what your table looks like currently and how you would want it to appear?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 15:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371578#M109345</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-10-02T15:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forming a table with sourcename next to the first column for each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371579#M109346</link>
      <description>&lt;P&gt;@charanramireddy, Are you saying the following works&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;YourBaseSearch&amp;gt;
| table source foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But revrsing the sequence does not?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;YourBaseSearch&amp;gt;
| table source foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What type of data input is it? What is going to be the first column in the table? Are you able to see &lt;CODE&gt;source&lt;/CODE&gt; names when you run your base search under interesting fields? What is the exact &lt;CODE&gt;table&lt;/CODE&gt; command you are running?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 15:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371579#M109346</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-02T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forming a table with sourcename next to the first column for each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371580#M109347</link>
      <description>&lt;P&gt;This is my sample search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ssc | multikv forceheader=6 | stats latest(CQD) as COL1, latest(PQF) as COL2, latest(OIC) as COL3, latest(OUC) as COL4 by Local | sort 0 - COL2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I want a new column appended with source values as second column.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 15:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371580#M109347</guid>
      <dc:creator>charanramireddy</dc:creator>
      <dc:date>2017-10-02T15:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forming a table with sourcename next to the first column for each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371581#M109348</link>
      <description>&lt;P&gt;index=ssc | multikv forceheader=6 | stats latest(CQD) as COL1, latest(PQF) as COL2, latest(OIC) as COL3, latest(OUC) as COL4 by Local | sort 0 - COL2&lt;BR /&gt;
If I just add &lt;BR /&gt;
index=ssc | multikv forceheader=6 | stats latest(CQD) as COL1, latest(PQF) as COL2, latest(OIC) as COL3, latest(OUC) as COL4 by Local, latest (source) as COL5 | sort 0 - COL2&lt;BR /&gt;
or if you want to see ALL the source values in one go&lt;BR /&gt;
index=ssc | multikv forceheader=6 | stats latest(CQD) as COL1, latest(PQF) as COL2, latest(OIC) as COL3, latest(OUC) as COL4 by Local, values (source) as COL5 | sort 0 - COL2&lt;/P&gt;

&lt;P&gt;Coming back to what @niketnilay is asking is source an auto discovered field or you want to extract a custom source field?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 15:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371581#M109348</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-10-02T15:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forming a table with sourcename next to the first column for each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371582#M109349</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=ssc | multikv forceheader=6 | stats latest(CQD) as COL1, latest(PQF) as COL2, latest(OIC) as COL3, latest(OUC) as COL4 by Local source | sort 0 - COL2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Oct 2017 15:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371582#M109349</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-10-02T15:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with forming a table with sourcename next to the first column for each row?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371583#M109350</link>
      <description>&lt;P&gt;this is exactly what I was looking for.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 15:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-forming-a-table-with-sourcename-next-to-the-first/m-p/371583#M109350</guid>
      <dc:creator>charanramireddy</dc:creator>
      <dc:date>2017-10-02T15:58:55Z</dc:date>
    </item>
  </channel>
</rss>

