<?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: Search term in table results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703078#M238340</link>
    <description>&lt;P&gt;Unfortunately&amp;nbsp; it is not a fixed term or field.&amp;nbsp; &amp;nbsp;It is just a random term for a search.&amp;nbsp; Similar to using a search in MS Word for "FOO" in a 10,000 page document.&amp;nbsp; Now I am trying to figure out how to make that useful in the table as a result.&amp;nbsp; I have tried an input file this morning but not familiar with working with that.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Table desired....&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Environment&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;userid&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;option&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;abc&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;defgh&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;THE TERM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Wed, 30 Oct 2024 09:39:20 GMT</pubDate>
    <dc:creator>bullbasin</dc:creator>
    <dc:date>2024-10-30T09:39:20Z</dc:date>
    <item>
      <title>Search term in table results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703034#M238328</link>
      <description>&lt;P&gt;Ok maybe it is too much Splunk today.&amp;nbsp; Whatever it is I can not for the life of me remember how to do this.&lt;/P&gt;&lt;P&gt;I am doing a basic search on some logs.&amp;nbsp; I want to show the search term in the table results.&amp;nbsp; The term is being queried out of the _raw&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex sourcetype=mystuff Environment=thisone "THE_TERM"
| top Environment by userid
|  table  Environment, userid &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Where and how to I add&amp;nbsp;"THE_TERM" to the table results?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 18:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703034#M238328</guid>
      <dc:creator>bullbasin</dc:creator>
      <dc:date>2024-10-29T18:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search term in table results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703050#M238331</link>
      <description>&lt;P&gt;If the search term is a fixed string then just add it to the &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table Environment, userid, "THE_TERM"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 00:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703050#M238331</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-10-30T00:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search term in table results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703078#M238340</link>
      <description>&lt;P&gt;Unfortunately&amp;nbsp; it is not a fixed term or field.&amp;nbsp; &amp;nbsp;It is just a random term for a search.&amp;nbsp; Similar to using a search in MS Word for "FOO" in a 10,000 page document.&amp;nbsp; Now I am trying to figure out how to make that useful in the table as a result.&amp;nbsp; I have tried an input file this morning but not familiar with working with that.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Table desired....&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Environment&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;userid&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;option&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;abc&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;defgh&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;THE TERM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 30 Oct 2024 09:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703078#M238340</guid>
      <dc:creator>bullbasin</dc:creator>
      <dc:date>2024-10-30T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search term in table results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703103#M238351</link>
      <description>&lt;P&gt;Where does the term come from?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 12:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703103#M238351</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-10-30T12:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search term in table results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703105#M238353</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=myindex sourcetype=mystuff Environment=thisone "THE_TERM"
| eval option="THE_TERM"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Oct 2024 12:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703105#M238353</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-30T12:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search term in table results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703114#M238356</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The term is being queried out of the _raw.&amp;nbsp; Which is also the field "Log"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 13:52:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703114#M238356</guid>
      <dc:creator>bullbasin</dc:creator>
      <dc:date>2024-10-30T13:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search term in table results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703135#M238359</link>
      <description>&lt;P&gt;Thank you, but I was wanting to learn where the random text "THE_TERM" comes from and how it gets into the query.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 15:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-term-in-table-results/m-p/703135#M238359</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-10-30T15:17:45Z</dc:date>
    </item>
  </channel>
</rss>

