<?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: Displaying successful and failed results in timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617252#M214508</link>
    <description>&lt;P&gt;Thanks for the sample events.&amp;nbsp; Which exception is displayed and which one is not?&lt;/P&gt;&lt;P&gt;The rex command in the query seems meaningless.&amp;nbsp; It looks at the exception field and puts everything it finds into the exception field. Why?&lt;/P&gt;</description>
    <pubDate>Sat, 15 Oct 2022 12:25:02 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-10-15T12:25:02Z</dc:date>
    <item>
      <title>Displaying successful and failed results in timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617214#M214490</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to show successful validations and failures in one of the dashboard panels. I am logging exceptions in traceData.exception field. In this field there is exception with full stacktrace , but would like to display just exception name so need to extract just first line of exception.&lt;/P&gt;
&lt;P&gt;My query looks like&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;index=xxx sourcetype="xxx"  app=xxx event.data.request.uri="/xxx"
| rename event.data.response.statusCode as statusCode
| rename event.traceData.exception as exception
| rex field=exception "(?&amp;lt;exception&amp;gt;.*)"
| eval result = if(statusCode=201,"Valid", 'exception')
| timechart span=1h count by result​&lt;/LI-CODE&gt;&lt;BR /&gt;&lt;BR /&gt;the issue is it displays "Valid" calls, but for exceptions it just displays one exception, and the other one is NULL.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;_time Valid Token invalid&amp;nbsp; NULL
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;2022-10-13 08:00&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Both exceptions have the same fields (just different exception values and stacktrace). Could you help me with the query which will display results and extract all the exceptions without stacktrace ?&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Oct 2022 14:30:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617214#M214490</guid>
      <dc:creator>aasiaa</dc:creator>
      <dc:date>2022-10-17T14:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying successful and failed results in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617221#M214494</link>
      <description>&lt;P&gt;Please share sanitized samples of validations and failures.&amp;nbsp; We can't check your regular expression without it.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 00:09:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617221#M214494</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-15T00:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying successful and failed results in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617248#M214506</link>
      <description>&lt;P&gt;Here are samples of success and failures&lt;/P&gt;&lt;DIV&gt;Success&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;app&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;xxx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;event&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;data&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;request&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;response&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;statusCode&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;201&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;traceData&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;traceId&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;xxx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Failure 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;SPAN class=""&gt;app&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;xxx&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;event&lt;/SPAN&gt;&lt;FONT color="#3c444d"&gt;:&amp;nbsp;&lt;/FONT&gt;{&lt;BR /&gt;&lt;FONT color="#3c444d"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN class=""&gt;data&lt;/SPAN&gt;:&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;request&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;response&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;statusCode&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;401&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&lt;FONT color="#3c444d"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN class=""&gt;traceData&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;exception&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;Token inactive&lt;BR /&gt;com.xxxx.xxxx.xxx.xxxx.xxxx.xxxx.xxxx.xxxx(xxx:52)&lt;BR /&gt;xxxxxxxxxxxxxxxx(xxxxx.xxx:113) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;xxxxxxxxxxxxxxxx(xxxxx.xxx:213)&lt;BR /&gt;&lt;FONT color="#3c444d"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;SPAN class=""&gt;traceId&lt;/SPAN&gt;:&amp;nbsp;xxx &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;FONT color="#3c444d"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;}&lt;BR /&gt;&lt;FONT color="#3c444d"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Failure 2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;SPAN class=""&gt;app&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;xxx&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;event&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;data&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;request&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;response&lt;/SPAN&gt;:&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;statusCode&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;400&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;traceData&lt;/SPAN&gt;:&amp;nbsp;{&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;exception&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;Id: xxx already used or not found&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;com.xxxx.xxxx.xxx.xxxx.xxxx.xxxx.xxxx.xxxx(xxx:13)&lt;BR /&gt;xxxxxxxxxxxxxxxx(xxxxx.xxx:114)&lt;BR /&gt;xxxxxxxxxxxxxxxx(xxxxx.xxx:214)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;traceId&lt;/SPAN&gt;:&amp;nbsp;&lt;SPAN class=""&gt;xxx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 15 Oct 2022 08:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617248#M214506</guid>
      <dc:creator>aasiaa</dc:creator>
      <dc:date>2022-10-15T08:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying successful and failed results in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617252#M214508</link>
      <description>&lt;P&gt;Thanks for the sample events.&amp;nbsp; Which exception is displayed and which one is not?&lt;/P&gt;&lt;P&gt;The rex command in the query seems meaningless.&amp;nbsp; It looks at the exception field and puts everything it finds into the exception field. Why?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 12:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617252#M214508</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-15T12:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying successful and failed results in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617254#M214509</link>
      <description>&lt;P&gt;Thank you for trying to help.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It displays second exception and success response. The other one displays as null, but query finds all the events.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Rex I found in someone else's question how to display exception without stacktrace, within all the proposed solution, that was the only one actually working. Without this 'rex' it displays exception with stacktrace.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 13:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617254#M214509</guid>
      <dc:creator>aasiaa</dc:creator>
      <dc:date>2022-10-15T13:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying successful and failed results in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617266#M214513</link>
      <description>&lt;P&gt;I have also noticed strange thing about those exceptions not displaying (displaying as NULL). When I search for the events, and in my query use add event.traceData.exception!=NULL or&amp;nbsp;event.traceData.exception=* it does not find them. Also when I click on the exception field and try to add it to a search or exclude it from search it does not do anything. What could cause that ? In the code all those exceptions are logged the same way, the only difference between them is the type of exception. But that really should not matter as I should be able to add to the field whatever I want ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 21:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617266#M214513</guid>
      <dc:creator>aasiaa</dc:creator>
      <dc:date>2022-10-15T21:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying successful and failed results in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617267#M214514</link>
      <description>&lt;P class="lia-align-justify"&gt;I have actually found a solution. I found this post &lt;A href="https://community.splunk.com/t5/Splunk-Search/Field-appearing-as-null-in-table-when-too-long/m-p/535114" target="_self"&gt;fields appearing as null when too long&lt;/A&gt;&amp;nbsp;, my exceptions are quite long so it sounded like this is the case with my events, and using solution from there I made my query working.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;index=xxx sourcetype="xxx" app=xxx event.data.request.uri="xxx"&lt;BR /&gt;| rename event.data.response.statusCode as statusCode&lt;BR /&gt;| spath input=_raw path=event.traceData.exception output=exception&lt;BR /&gt;| rex field=exception "(?&amp;lt;exception&amp;gt;.*)"&lt;BR /&gt;| eval result = if(statusCode=201,"Valid", exception)&lt;BR /&gt;| timechart span=1h count by result&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; for your time&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 22:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-successful-and-failed-results-in-timechart/m-p/617267#M214514</guid>
      <dc:creator>aasiaa</dc:creator>
      <dc:date>2022-10-15T22:17:51Z</dc:date>
    </item>
  </channel>
</rss>

