<?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: Sparkline in Join in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228825#M67725</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If it's still a concern... Run into the same issue and this solution worked:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| join ... [.... sparkline(...) as sparkvisual ... ] | makemv delim="," setsv=true sparkvisual
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Credit goes to this topic:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/69290/appending-sparkline-through-a-join.html"&gt;https://answers.splunk.com/answers/69290/appending-sparkline-through-a-join.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2017 14:31:14 GMT</pubDate>
    <dc:creator>gergelybata</dc:creator>
    <dc:date>2017-06-29T14:31:14Z</dc:date>
    <item>
      <title>Sparkline in Join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228820#M67720</link>
      <description>&lt;P&gt;Hi expert,&lt;/P&gt;

&lt;P&gt;I'm trying to use sparkline inside join subsearch.&lt;BR /&gt;
The result out of the sparkline is not rendered properly and looks like this: &lt;BR /&gt;
(##&lt;STRONG&gt;SPARKLINE&lt;/STRONG&gt;##,514.000000,549.000000,608.000000,665.000000,729.000000,786.000000,853....... data continues)&lt;/P&gt;

&lt;P&gt;I looked up this previous post where a solution was suggested, but it doesn't work in my case.&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/69290/appending-sparkline-through-a-join.html"&gt;https://answers.splunk.com/answers/69290/appending-sparkline-through-a-join.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Is there a command I can use to render the result correctly?&lt;/P&gt;

&lt;P&gt;I've tried "append" and "appendcols" instead of "join", both of which render correctly, but:&lt;BR /&gt;
- "append" doesn't map the sparklines to the correct rows&lt;BR /&gt;
- "appendcols" adds new rows for the sparklines and doesn't map sparklines next to the existing rows.&lt;/P&gt;

&lt;P&gt;Any suggestion would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 03:09:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228820#M67720</guid>
      <dc:creator>takashi6</dc:creator>
      <dc:date>2016-08-15T03:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline in Join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228821#M67721</link>
      <description>&lt;P&gt;What is the entire search string? Otherwise we are just guessing...&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 23:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228821#M67721</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-08-17T23:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline in Join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228822#M67722</link>
      <description>&lt;P&gt;Hi Iguinn - thanks for picking this up.&lt;/P&gt;

&lt;P&gt;The below is the sparkline query which works perfectly when run independently:&lt;/P&gt;

&lt;P&gt;index=foo type=Pending&lt;BR /&gt;
| chart sparkline(avg(open_order),15m) as "Pending Trend" by service_name | sort service_name&lt;/P&gt;

&lt;P&gt;The below is the sparkline query within the join which returns the result not rendered as a "sparkline" format - as you can see I'm (1) listing all the possible service_name, (2) appending pending count for those services which had a pending count in the latest data extraction, (3) appending pending count trend in a sparkline format. (1) and (2) works but (3) returns non-rendered result.&lt;/P&gt;

&lt;P&gt;index="foo" type=* | stats count(service_name) by service_name &lt;BR /&gt;
| join type=left [search index="foo" type="Pending" | table _time, service_name, type, open_order &lt;BR /&gt;
| eventstats max(_time) as LatestTS | where _time=LatestTS | rename open_order as Pending | table service_name, Pending]&lt;BR /&gt;
| join type=left [search index="foo" type="Pending"&lt;BR /&gt;
| chart sparkline(avg(open_order),15m) as "Pending Trend" by service_name] &lt;BR /&gt;
| fillnull value=0 Pending&lt;BR /&gt;
| table service_name, Pending, "Pending Trend"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:39:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228822#M67722</guid>
      <dc:creator>takashi6</dc:creator>
      <dc:date>2020-09-29T10:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline in Join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228823#M67723</link>
      <description>&lt;P&gt;Hi Iguinn - was the information I provided helpful/enough? appreciate if you could provide your feedback.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 03:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228823#M67723</guid>
      <dc:creator>takashi6</dc:creator>
      <dc:date>2016-08-23T03:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline in Join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228824#M67724</link>
      <description>&lt;P&gt;Hi Iguinn or any expert - appreciate your feedback...&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 05:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228824#M67724</guid>
      <dc:creator>takashi6</dc:creator>
      <dc:date>2016-08-30T05:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline in Join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228825#M67725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If it's still a concern... Run into the same issue and this solution worked:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| join ... [.... sparkline(...) as sparkvisual ... ] | makemv delim="," setsv=true sparkvisual
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Credit goes to this topic:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/69290/appending-sparkline-through-a-join.html"&gt;https://answers.splunk.com/answers/69290/appending-sparkline-through-a-join.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 14:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228825#M67725</guid>
      <dc:creator>gergelybata</dc:creator>
      <dc:date>2017-06-29T14:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sparkline in Join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228826#M67726</link>
      <description>&lt;P&gt;use appendcols instead of Join&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 18:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sparkline-in-Join/m-p/228826#M67726</guid>
      <dc:creator>oolatunji</dc:creator>
      <dc:date>2018-12-04T18:36:12Z</dc:date>
    </item>
  </channel>
</rss>

