<?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: scatter chart is not working. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/scatter-chart-is-not-working/m-p/472879#M45766</link>
    <description>&lt;P&gt;index="123Prod" source="/var/ABC/CDE/trace.log" StartAuthenticationSession &lt;BR /&gt;
| rex field=_raw "traceId=\"(?[^:]+)" &lt;BR /&gt;
| rename _time as InTime &lt;BR /&gt;
| stats min(InTime) as InTime by TraceID &lt;BR /&gt;
| table InTime TraceID | sort InTime limit=5000&lt;BR /&gt;
| join TraceID&lt;BR /&gt;
   [ search index="123Prod" source="/var/ABC/CDE/trace.log"  responseType=AuthenticationSucceeded sessionCompleted&lt;BR /&gt;
   | rex field=_raw "traceId=\"(?[^:]+)"&lt;BR /&gt;
   | table _time, TraceID&lt;BR /&gt;
   | rename _time as OutTime&lt;BR /&gt;
   | table OutTime , TraceID]&lt;BR /&gt;
| table TraceID InTime OutTime&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:05:08 GMT</pubDate>
    <dc:creator>Anantha123</dc:creator>
    <dc:date>2020-09-30T02:05:08Z</dc:date>
    <item>
      <title>scatter chart is not working.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/scatter-chart-is-not-working/m-p/472877#M45764</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am running a query to show in scatter chart with  name-field, X-axis and Y-axis .  This Query throws over 15000 results for  past 24 hrs . Since the limit of scatter chart is 10000 , I gave limit=5000 to try . When I am running the query for 60 mins ,I get the scatter chart as expected . But when I run same query for 24 hrs ( the record may be high but I have the limit added in query ) , It is breaking the search by saying "script long running - stop script" . Please advice &lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 15:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/scatter-chart-is-not-working/m-p/472877#M45764</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2019-09-05T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: scatter chart is not working.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/scatter-chart-is-not-working/m-p/472878#M45765</link>
      <description>&lt;P&gt;Sounds like your search needs to be tuned.  If you post the code, we can suggest ways to make it run more effectively.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 17:42:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/scatter-chart-is-not-working/m-p/472878#M45765</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2019-09-05T17:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: scatter chart is not working.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/scatter-chart-is-not-working/m-p/472879#M45766</link>
      <description>&lt;P&gt;index="123Prod" source="/var/ABC/CDE/trace.log" StartAuthenticationSession &lt;BR /&gt;
| rex field=_raw "traceId=\"(?[^:]+)" &lt;BR /&gt;
| rename _time as InTime &lt;BR /&gt;
| stats min(InTime) as InTime by TraceID &lt;BR /&gt;
| table InTime TraceID | sort InTime limit=5000&lt;BR /&gt;
| join TraceID&lt;BR /&gt;
   [ search index="123Prod" source="/var/ABC/CDE/trace.log"  responseType=AuthenticationSucceeded sessionCompleted&lt;BR /&gt;
   | rex field=_raw "traceId=\"(?[^:]+)"&lt;BR /&gt;
   | table _time, TraceID&lt;BR /&gt;
   | rename _time as OutTime&lt;BR /&gt;
   | table OutTime , TraceID]&lt;BR /&gt;
| table TraceID InTime OutTime&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/scatter-chart-is-not-working/m-p/472879#M45766</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2020-09-30T02:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: scatter chart is not working.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/scatter-chart-is-not-working/m-p/472880#M45767</link>
      <description>&lt;P&gt;Okay, here's the way to connect all the dots at one time more efficiently. This method is called the "Splunk Stew" method, and uses &lt;CODE&gt;stats&lt;/CODE&gt; to join on the key instead of &lt;CODE&gt;join&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="123Prod" source="/var/ABC/CDE/trace.log" 
   (StartAuthenticationSession) OR
   (responseType=AuthenticationSucceeded sessionCompleted)
| rex field=_raw "traceId=\"(?[^:]+)"
| eval OutTime=case(responseType="AuthenticationSucceeded",_time)
| eval InTime=case(isnull(OutTime),_time)
| stats min(InTime) as InTime max(OutTime) as OutTime by TraceID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then, given those results, you can cull them to only 5K with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| sort 5000 InTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See how that works for you.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;The "Splunk Stew" method is more fully described here - &lt;A href="https://answers.splunk.com/answers/524250/how-to-search-for-matches-in-two-different-searche.html"&gt;https://answers.splunk.com/answers/524250/how-to-search-for-matches-in-two-different-searche.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 21:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/scatter-chart-is-not-working/m-p/472880#M45767</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2019-09-06T21:02:37Z</dc:date>
    </item>
  </channel>
</rss>

