<?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 access data from table that is not displayed in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-from-table-that-is-not-displayed/m-p/379594#M111190</link>
    <description>&lt;P&gt;The &lt;CODE&gt;fields&lt;/CODE&gt; command doesn't control what is displayed, it controls what fields are available to subsequent commands.  By saying &lt;CODE&gt;fields column_1, column_2&lt;/CODE&gt; you've discarded all other fields and no command can bring them back.&lt;/P&gt;

&lt;P&gt;BTW, using &lt;CODE&gt;table&lt;/CODE&gt; followed by &lt;CODE&gt;fields&lt;/CODE&gt; is somewhat redundant.  The &lt;CODE&gt;table&lt;/CODE&gt; command controls the order in which fields are displayed and also specifies which fields are available downstream.  &lt;CODE&gt;fields&lt;/CODE&gt; also says which fields are available downstream.  When both are needed, &lt;CODE&gt;fields&lt;/CODE&gt; usually precedes &lt;CODE&gt;table&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 14:20:00 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-09-20T14:20:00Z</dc:date>
    <item>
      <title>How to access data from table that is not displayed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-from-table-that-is-not-displayed/m-p/379593#M111189</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a table with three columns, but I only want to display two columns, so I use the field command. When I click either column 1 or 2 from my dashboard, I want to access the column_3 data if I do this token:            &lt;/P&gt;

&lt;P&gt;$row.column_3|n$.&lt;/P&gt;

&lt;P&gt;However, I am no longer able to access the column_3.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;     
 index=*  | table column_1, column_2, column_3
| fields column_1, column_2     
 &amp;lt;/query&amp;gt;


&amp;lt;drilldown&amp;gt;
  &amp;lt;link&amp;gt;
      myapplication/$row.column_3|n$
  &amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried debugging my codes. Anywhere I click, I always go to "myapplication/$row.column_3|n$"&lt;/P&gt;

&lt;P&gt;But when I change to either:&lt;/P&gt;

&lt;P&gt;myapplication/$row.column_2|n$&lt;BR /&gt;
OR&lt;BR /&gt;
myapplication/$row.column_1|n$&lt;/P&gt;

&lt;P&gt;I am getting the values accordingly. So it seems that $row.fieldname$ is working fine. Does anyone know what's going on? I thought fields allow me to display what I want, but keeps all the value from my table?&lt;/P&gt;

&lt;P&gt;PS: I know that this workaround exists, but this line of code is not accepted if I have a column chart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;field&amp;gt; ["column_1", "column_2"] &amp;lt;/field&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you in advance!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-from-table-that-is-not-displayed/m-p/379593#M111189</guid>
      <dc:creator>mabinn</dc:creator>
      <dc:date>2020-09-29T21:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to access data from table that is not displayed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-from-table-that-is-not-displayed/m-p/379594#M111190</link>
      <description>&lt;P&gt;The &lt;CODE&gt;fields&lt;/CODE&gt; command doesn't control what is displayed, it controls what fields are available to subsequent commands.  By saying &lt;CODE&gt;fields column_1, column_2&lt;/CODE&gt; you've discarded all other fields and no command can bring them back.&lt;/P&gt;

&lt;P&gt;BTW, using &lt;CODE&gt;table&lt;/CODE&gt; followed by &lt;CODE&gt;fields&lt;/CODE&gt; is somewhat redundant.  The &lt;CODE&gt;table&lt;/CODE&gt; command controls the order in which fields are displayed and also specifies which fields are available downstream.  &lt;CODE&gt;fields&lt;/CODE&gt; also says which fields are available downstream.  When both are needed, &lt;CODE&gt;fields&lt;/CODE&gt; usually precedes &lt;CODE&gt;table&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-from-table-that-is-not-displayed/m-p/379594#M111190</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-09-20T14:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to access data from table that is not displayed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-from-table-that-is-not-displayed/m-p/379595#M111191</link>
      <description>&lt;P&gt;Thanks for the info! It sounds like I need to display my all three columns into my table in order to use row.? Do you know if there is any way (other than CSS) to hide my table column but access its data?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:53:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-from-table-that-is-not-displayed/m-p/379595#M111191</guid>
      <dc:creator>mabinn</dc:creator>
      <dc:date>2018-09-20T16:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to access data from table that is not displayed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-from-table-that-is-not-displayed/m-p/379596#M111192</link>
      <description>&lt;P&gt;This worked for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;
          index=* | table column_1, column_2, column_3
      &amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;fields&amp;gt;column_1, column_2&amp;lt;/fields&amp;gt;
    &amp;lt;option&amp;gt;
    ...
    &amp;lt;/option&amp;gt;
    &amp;lt;drilldown&amp;gt;
      &amp;lt;link&amp;gt;
          myapplication/$row.column_3$
      &amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The fields-tag decide which columns are shown and the link has still connection to the column_3 you set with the table-tag&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 09:09:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-from-table-that-is-not-displayed/m-p/379596#M111192</guid>
      <dc:creator>gorba</dc:creator>
      <dc:date>2019-09-19T09:09:09Z</dc:date>
    </item>
  </channel>
</rss>

