<?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: Null results on timechart using base search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386321#M112752</link>
    <description>&lt;P&gt;@3DGjos&lt;/P&gt;

&lt;P&gt;Try by mentioning required fields only in base search.&lt;/P&gt;

&lt;P&gt;like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=XXX ("XXXCreateEmptyGame: GameInfo:") action=created  game!=*XX* | table _time action character  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=XXX ("XXXCreateEmptyGame: GameInfo:") action=created  game!=*XX* | fields _time action character  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 May 2019 06:04:03 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2019-05-24T06:04:03Z</dc:date>
    <item>
      <title>Null results on timechart using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386320#M112751</link>
      <description>&lt;P&gt;Hello, im making a dashboard with a timechart and some filters, I can't make it to work, my filter gives no results and my linechart shows only a weird count of NULLS. Weird thing is that, if I click on "open in search", my search works.&lt;/P&gt;

&lt;P&gt;Here are my inputs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search id="base1"&amp;gt;
    &amp;lt;query&amp;gt;index=XXX ("XXXCreateEmptyGame: GameInfo:") action=created  game!=*XX* 
         &amp;lt;/query&amp;gt;
 &amp;lt;earliest&amp;gt;$time.earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$time.latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;  

&amp;lt;input type="time" token="time" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;time&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;

      &amp;lt;input type="multiselect" token="character" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Filtrar by char&amp;lt;/label&amp;gt;
        &amp;lt;choice value="*"&amp;gt;TODOS&amp;lt;/choice&amp;gt;
        &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
        &amp;lt;valuePrefix&amp;gt;character="&amp;lt;/valuePrefix&amp;gt;
        &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
        &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
        &amp;lt;search base="base1"&amp;gt;
          &amp;lt;query&amp;gt;  stats      count(action) AS "countx" by character  |head 10| sort - "countx" | fields - "countx"&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;title&amp;gt;total amount&amp;lt;/title&amp;gt;
        &amp;lt;search base="base1"&amp;gt;
          &amp;lt;query&amp;gt;timechart  span=1h useother=f count(action) AS "count2" by character  | sort - "count2"&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is welcome, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 05:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386320#M112751</guid>
      <dc:creator>3DGjos</dc:creator>
      <dc:date>2019-05-24T05:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Null results on timechart using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386321#M112752</link>
      <description>&lt;P&gt;@3DGjos&lt;/P&gt;

&lt;P&gt;Try by mentioning required fields only in base search.&lt;/P&gt;

&lt;P&gt;like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=XXX ("XXXCreateEmptyGame: GameInfo:") action=created  game!=*XX* | table _time action character  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=XXX ("XXXCreateEmptyGame: GameInfo:") action=created  game!=*XX* | fields _time action character  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 May 2019 06:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386321#M112752</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-05-24T06:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Null results on timechart using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386322#M112753</link>
      <description>&lt;P&gt;Thanks! it worked!&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 01:25:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386322#M112753</guid>
      <dc:creator>3DGjos</dc:creator>
      <dc:date>2019-05-28T01:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Null results on timechart using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386323#M112754</link>
      <description>&lt;P&gt;Can't mark it as the answer :S&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 01:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386323#M112754</guid>
      <dc:creator>3DGjos</dc:creator>
      <dc:date>2019-05-28T01:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Null results on timechart using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386324#M112755</link>
      <description>&lt;P&gt;you could also just use &lt;CODE&gt;timechart  span=1h useother=f count(action) AS "count2" by character usenull=f&lt;/CODE&gt; but to limit or filter on the fields in the base search is much better &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 03:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Null-results-on-timechart-using-base-search/m-p/386324#M112755</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-05-28T03:02:40Z</dc:date>
    </item>
  </channel>
</rss>

