<?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 Search Only Returning One Column in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Search-Only-Returning-One-Column/m-p/95028#M980</link>
    <description>&lt;P&gt;Here is the search, putting results in a summary index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="SmtpPrevent_operational" dtime=*s | convert auto(dtime) | search dtime&amp;gt;=60 | sitimechart span=1h count(dtime&amp;gt;=60), count(dtime&amp;gt;=120), count(dtime&amp;gt;=180)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(longhand version)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="SmtpPrevent_operational" dtime=*s | convert auto(dtime) | search dtime&amp;gt;=60 | sitimechart span=1h count(dtime&amp;gt;=60), count(dtime&amp;gt;=120), count(dtime&amp;gt;=180) | summaryindex spool=t uselb=t addtime=t index="dtime_plus_60" file="Summary Index DTime 60+,120+,180+ per Hour_1480261911.stash_new" name="Summary Index DTime 60+,120+,180+ per Hour" marker=""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now here is what ends up being in the summary index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10/18/2012 10:00:00, search_name="Summary Index DTime 60+,120+,180+ per Hour", search_now=1350576300.000, info_min_time=1350568800.000, info_max_time=1350572400.000, info_search_time=1350576324.840, psrsvd_gc=27, psrsvd_v=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Oct 2012 16:38:11 GMT</pubDate>
    <dc:creator>whod81</dc:creator>
    <dc:date>2012-10-18T16:38:11Z</dc:date>
    <item>
      <title>Search Only Returning One Column</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Search-Only-Returning-One-Column/m-p/95028#M980</link>
      <description>&lt;P&gt;Here is the search, putting results in a summary index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="SmtpPrevent_operational" dtime=*s | convert auto(dtime) | search dtime&amp;gt;=60 | sitimechart span=1h count(dtime&amp;gt;=60), count(dtime&amp;gt;=120), count(dtime&amp;gt;=180)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(longhand version)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="SmtpPrevent_operational" dtime=*s | convert auto(dtime) | search dtime&amp;gt;=60 | sitimechart span=1h count(dtime&amp;gt;=60), count(dtime&amp;gt;=120), count(dtime&amp;gt;=180) | summaryindex spool=t uselb=t addtime=t index="dtime_plus_60" file="Summary Index DTime 60+,120+,180+ per Hour_1480261911.stash_new" name="Summary Index DTime 60+,120+,180+ per Hour" marker=""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now here is what ends up being in the summary index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10/18/2012 10:00:00, search_name="Summary Index DTime 60+,120+,180+ per Hour", search_now=1350576300.000, info_min_time=1350568800.000, info_max_time=1350572400.000, info_search_time=1350576324.840, psrsvd_gc=27, psrsvd_v=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Oct 2012 16:38:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Search-Only-Returning-One-Column/m-p/95028#M980</guid>
      <dc:creator>whod81</dc:creator>
      <dc:date>2012-10-18T16:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Search Only Returning One Column</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Search-Only-Returning-One-Column/m-p/95029#M981</link>
      <description>&lt;P&gt;If you just use a normal timechart command are you getting the expected results (3 groups) from your search?&lt;/P&gt;

&lt;P&gt;Your summary index output seems to reflect only 1 count of results (no grouping!) being saved (as per your question).&lt;/P&gt;

&lt;P&gt;edit: Actually, looking at your search I wouldn't have expected "count(dtime&amp;gt;=60), count(dtime&amp;gt;=120), count(dtime&amp;gt;=180)" to actually output anything.&lt;/P&gt;

&lt;P&gt;So your original search needs to be fixed with something like this perhaps :&lt;/P&gt;

&lt;P&gt;| eval dtime_group=case(dtime &amp;lt;= "60" , "less60", dtime &amp;gt;= "61" AND dtime &amp;lt;= "120", "lessthan120", dtime &amp;gt;="180", "lessthan180") | timechart count by dtime_group&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Search-Only-Returning-One-Column/m-p/95029#M981</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2020-09-28T12:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search Only Returning One Column</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Search-Only-Returning-One-Column/m-p/95030#M982</link>
      <description>&lt;P&gt;The non-si version of the search properly returns 3 columns.&lt;/P&gt;

&lt;P&gt;sourcetype=\"SmtpPrevent_operational\" dtime=*s | convert auto(dtime) | search dtime&amp;gt;=60 | timechart span=1d count(eval(dtime&amp;gt;=60)) as 60+, count(eval(dtime&amp;gt;=120)) as 120+, count(eval(dtime&amp;gt;=180)) as 180+'&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 15:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Search-Only-Returning-One-Column/m-p/95030#M982</guid>
      <dc:creator>whod81</dc:creator>
      <dc:date>2012-10-23T15:30:57Z</dc:date>
    </item>
  </channel>
</rss>

