Dashboards & Visualizations

how to fix error "The external search command 'xmlkv' did not return events in descending time order, as expected"?


I am getting error as ** "The external search command 'xmlkv' did not return events in descending time order, as expected"** along with my search results.

Dashboard functionality works as expected and search results are getting displayed. Please find the code snippet for one panel for reference and suggest. There are 6 panels altogether with different queries.

<form script="SBT.js" refresh="320">
      <label>SBT </label>
    <search id="baseSearch">
          | rex field=_raw "((?<LogType>(\w*))\s(?<MsgCode>(\d+))\s((([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]))\s(?<TimeStamp>(\d{8}\s\d{6}))\s(?<TextMsg>([\w\s.:,/()]*)))"
         | rex field=number "(?<Number>([\d]*))/\d"
         | xmlkv maxinputs=10000
         | rename "SBT-type" as Mtracktype "SBT-exception-code" as MTrackECode
         | eval LogTimeStamp=strftime(strptime(TimeStamp,"%Y%m%d%H%M%S"),"%m/%d/%Y %H:%M:%S %p")
         | sort -LogTimeStamp      

    <fieldset submitButton="true" autoRun="false">

    <input type="text" token="SBTNo" depends="$tknNoPanel$" searchWhenChanged="false">
          <label>SBT Number</label>
            <condition value="">
              <set token="SBTNo">*</set>
        <panel depends="$tknNoPanel$">

      <title> Results </title>

          <html depends="$export_button$">
           <a class="btn btn-primary" role="button" href="/api/search/jobs/$export_sid$/results?isDownload=true&amp;timeFormat=%25FT%25T.%25Q%25%3Az&amp;maxLines=0&amp;count=0&amp;filename=input_CSVExport&amp;outputMode=csv">Export</a>        

          <table id="table1">
            <search base="baseSearch">
    search (SBTnumber=$SBTNo$ OR Number=$SBTNo$ OR type=$SBTNo$ OR AWB=$SBTNo$)

    |  table LogType LogTimeStamp  Msg SBTtype  SBTnumber

                <set token="export_sid">$job.sid$</set>
                <set token="export_button">1</set>
            <option name="count">100</option>
            <option name="dataOverlayMode">none</option>
            <option name="drilldown">none</option>
            <option name="percentagesRow">false</option>
            <option name="rowNumbers">false</option>
            <option name="totalsRow">false</option>
            <option name="wrap">true</option>
Labels (2)
0 Karma
Get Updates on the Splunk Community!

Announcing General Availability of Splunk Incident Intelligence!

Digital transformation is real! Across industries, companies big and small are going through rapid digital ...

Splunk Training for All: Meet Aspiring Cybersecurity Analyst, Marc Alicea

Splunk Education believes in the value of training and certification in today’s rapidly-changing data-driven ...

The Splunk Success Framework: Your Guide to Successful Splunk Implementations

Splunk Lantern is a customer success center that provides advice from Splunk experts on valuable data ...