<?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 How to add a static value to a table with one column? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343011#M101588</link>
    <description>&lt;P&gt;I'm trying to add a single value to a table I use to dynamically populate a selector in a dashboard. The search I use to populate the dropdown is:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=initial search|dedup pageURL| table pageURL&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;I want to add to the end of the search something that can be a &lt;CODE&gt;*&lt;/CODE&gt; value. The reason for this is that in my dashboards built off of the input, I use &lt;CODE&gt;$pageURL$&lt;/CODE&gt; to allow viewers to select the specific page they wish to see stats for. However, I want a specific value where I set &lt;CODE&gt;pageURL=*&lt;/CODE&gt;so that viewers can see what all the pages look like. I tried doing the following as the search to populate the dropdown:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=initial search|dedup pageURL| table pageURL | append [|table pageURL | eval pageURL="*"]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But that didn't add a value of &lt;CODE&gt;*&lt;/CODE&gt; to the end of the table. Is there a way I can do this?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 22:45:12 GMT</pubDate>
    <dc:creator>brajaram</dc:creator>
    <dc:date>2018-03-08T22:45:12Z</dc:date>
    <item>
      <title>How to add a static value to a table with one column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343011#M101588</link>
      <description>&lt;P&gt;I'm trying to add a single value to a table I use to dynamically populate a selector in a dashboard. The search I use to populate the dropdown is:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=initial search|dedup pageURL| table pageURL&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;I want to add to the end of the search something that can be a &lt;CODE&gt;*&lt;/CODE&gt; value. The reason for this is that in my dashboards built off of the input, I use &lt;CODE&gt;$pageURL$&lt;/CODE&gt; to allow viewers to select the specific page they wish to see stats for. However, I want a specific value where I set &lt;CODE&gt;pageURL=*&lt;/CODE&gt;so that viewers can see what all the pages look like. I tried doing the following as the search to populate the dropdown:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=initial search|dedup pageURL| table pageURL | append [|table pageURL | eval pageURL="*"]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But that didn't add a value of &lt;CODE&gt;*&lt;/CODE&gt; to the end of the table. Is there a way I can do this?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 22:45:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343011#M101588</guid>
      <dc:creator>brajaram</dc:creator>
      <dc:date>2018-03-08T22:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a static value to a table with one column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343012#M101589</link>
      <description>&lt;P&gt;Give this a go:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=initial search|dedup pageURL| table pageURL | append [| makeresults 1 | eval pageURL="*" | table pageURL]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 22:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343012#M101589</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2018-03-08T22:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a static value to a table with one column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343013#M101590</link>
      <description>&lt;P&gt;Also, if I understand what you're asking correctly, I typically add a manual entry to the input as well.  You can call that one "All" and give it a value of *.  So then your users would have an All option in the dropdown along with each pageURL from your dynamic search.  &lt;/P&gt;

&lt;P&gt;That's might be a bit easier than trying to append it to your dynamic search.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 22:56:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343013#M101590</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2018-03-08T22:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a static value to a table with one column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343014#M101591</link>
      <description>&lt;P&gt;I didn't even think about adding a static value, thanks! That does seem a lot more efficient. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 23:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343014#M101591</guid>
      <dc:creator>brajaram</dc:creator>
      <dc:date>2018-03-08T23:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a static value to a table with one column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343015#M101592</link>
      <description>&lt;P&gt;Yes that is true - You'd be as well to add the static entry. but...now you know about &lt;CODE&gt;makeresults&lt;/CODE&gt;!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 23:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-static-value-to-a-table-with-one-column/m-p/343015#M101592</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2018-03-08T23:17:40Z</dc:date>
    </item>
  </channel>
</rss>

