Splunk Search

Scheduled Base Search only showing several hours of events.

splunkninga
New Member

I have a base search ("BaseSearch-SyslogsBro") that is scheduled to run daily in the morning which is utilized within a dashboard.

index=bro source=/opt/bro/logs/current/syslog.log | fields severity, asa_session, asa_code, id.orig_h, id.resp_h, msg_

Within the dashboard, I have different panels. In particular, I have one where I am hoping to show a timechart count by the severity field.

<form>
  <label>Syslogs Bro</label>
  <search id="base_search" ref="BaseSearch-SyslogsBro">
    <earliest>$field1.earliest$</earliest>
    <latest>$field1.latest$</latest>
  </search>
  <fieldset submitButton="false">
    <input type="time" token="field1">
      <label></label>
      <default>
        <earliest>-24h@h</earliest>
        <latest>now</latest>
      </default>
    </input>
  </fieldset>
  <row>
    <panel>
      <chart>
        <title>Timechart</title>
        <search base="base_search">
          <query>| timechart count by severity</query>
        </search>
        <option name="charting.chart">area</option>
        <option name="refresh.display">progressbar</option>
      </chart>
    </panel>
  </row>
</form>

As mentioned before, the base search is scheduled to run daily, but also with Time Range of the last 24 hours. My problem is that currently, whenever I ran this dashboard, the timechart only displays results for the last 3-4 hours (Not the entire 24 hour frame).

Based on the code shown above and my base search, what am I doing wrong? Is there something wrong with my code/logic?

I appreciate any comments/guidance/hints.
Thanks,

0 Karma

somesoni2
Revered Legend

How many rows does your scheduled base search produces?

0 Karma

splunkninga
New Member

Right now, only 1.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...