<?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 Passing Token values to Overlay field in the line chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/684940#M56075</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;I am working on creating a column line chart dashboard that shows database lattency . I'm encountering a issue where I'm trying to pass a token value to overlay options for line chart representation over a column chart. Here are things currently i have,&lt;BR /&gt;&lt;BR /&gt;My Chart and My SPL query:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjai_0-1713765156076.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30517iABB1A62FCA03BE22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanjai_0-1713765156076.png" alt="sanjai_0-1713765156076.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SPL:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;index=development sourcetype=rwa_custom_function user_action=swmfs_test ds_file=*&lt;BR /&gt;| eval ds_file_path=ds_path."\\".ds_file&lt;BR /&gt;| chart avg(ms_per_block) as avg_processing_time_per_block over ds_file_path by machine&lt;BR /&gt;| appendcols&lt;BR /&gt;[search index=development sourcetype=rwa_custom_function user_action=swmfs_test ds_file=*&lt;BR /&gt;| eval ds_file_path=ds_path."\\".ds_file&lt;BR /&gt;| stats max(block_count) as total_blocks by ds_file_path]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjai_1-1713765156659.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30518iEC21661922B02B9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanjai_1-1713765156659.png" alt="sanjai_1-1713765156659.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to assign the overlay field value(&lt;STRONG&gt;avg_processing_time_per_block &lt;/STRONG&gt;)from the line in SPL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;| chart avg(ms_per_block) as avg_processing_time_per_block over ds_file_path by machine&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I'm attempting to assign it as a token is that the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;avg_processing_time_per_block&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;has dynamic values (sometimes it may be 10 or 12 machines data ).&lt;/SPAN&gt;instead of rwmini and rwws01.&lt;BR /&gt;&lt;BR /&gt;Column has&amp;nbsp;&lt;STRONG&gt;total_blocks&amp;nbsp;value&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Or is there any ways to achieve this requirement?&lt;BR /&gt;&lt;BR /&gt;Your thoughts on these are highly appreciated. Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Sanjai&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 06:02:31 GMT</pubDate>
    <dc:creator>sanjai</dc:creator>
    <dc:date>2024-04-22T06:02:31Z</dc:date>
    <item>
      <title>Passing Token values to Overlay field in the line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/684940#M56075</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;I am working on creating a column line chart dashboard that shows database lattency . I'm encountering a issue where I'm trying to pass a token value to overlay options for line chart representation over a column chart. Here are things currently i have,&lt;BR /&gt;&lt;BR /&gt;My Chart and My SPL query:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjai_0-1713765156076.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30517iABB1A62FCA03BE22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanjai_0-1713765156076.png" alt="sanjai_0-1713765156076.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SPL:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;index=development sourcetype=rwa_custom_function user_action=swmfs_test ds_file=*&lt;BR /&gt;| eval ds_file_path=ds_path."\\".ds_file&lt;BR /&gt;| chart avg(ms_per_block) as avg_processing_time_per_block over ds_file_path by machine&lt;BR /&gt;| appendcols&lt;BR /&gt;[search index=development sourcetype=rwa_custom_function user_action=swmfs_test ds_file=*&lt;BR /&gt;| eval ds_file_path=ds_path."\\".ds_file&lt;BR /&gt;| stats max(block_count) as total_blocks by ds_file_path]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjai_1-1713765156659.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30518iEC21661922B02B9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanjai_1-1713765156659.png" alt="sanjai_1-1713765156659.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to assign the overlay field value(&lt;STRONG&gt;avg_processing_time_per_block &lt;/STRONG&gt;)from the line in SPL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;| chart avg(ms_per_block) as avg_processing_time_per_block over ds_file_path by machine&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I'm attempting to assign it as a token is that the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;avg_processing_time_per_block&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;has dynamic values (sometimes it may be 10 or 12 machines data ).&lt;/SPAN&gt;instead of rwmini and rwws01.&lt;BR /&gt;&lt;BR /&gt;Column has&amp;nbsp;&lt;STRONG&gt;total_blocks&amp;nbsp;value&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Or is there any ways to achieve this requirement?&lt;BR /&gt;&lt;BR /&gt;Your thoughts on these are highly appreciated. Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Sanjai&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 06:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/684940#M56075</guid>
      <dc:creator>sanjai</dc:creator>
      <dc:date>2024-04-22T06:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Token values to Overlay field in the line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/684956#M56076</link>
      <description>&lt;P&gt;You could have a separate (hidden) panel which generates the value of the token that you use to set the overlay fields for this&amp;nbsp; panel&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 07:56:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/684956#M56076</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-22T07:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Token values to Overlay field in the line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/684960#M56077</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for reply ,&lt;BR /&gt;&lt;BR /&gt;I understand ,&lt;BR /&gt;But correct me if i'm wrong&lt;/P&gt;&lt;P&gt;1.If i have a seperate hidden panel that gives my token value (&lt;STRONG&gt;avg_processing_time_per_block&lt;SPAN&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2.Then how can i assign the token &lt;STRONG&gt;$avg_processing_time_per_block$&lt;/STRONG&gt; value to overlay Fields&lt;STRONG&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;like these?&lt;BR /&gt;&amp;lt;option name="charting.chart.overlayFields"&amp;gt;&lt;STRONG&gt;$avg_processing_time_per_block$&lt;/STRONG&gt;&amp;nbsp;&amp;lt;/option&amp;gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;BR /&gt;&amp;lt;option name="charting.chart.overlayFields"&amp;gt;&lt;STRONG&gt;avg_processing_time_per_block&lt;/STRONG&gt;&amp;nbsp;&amp;lt;/option&amp;gt;&lt;BR /&gt;&lt;BR /&gt;if i gives these a token then line chart have a single line named&amp;nbsp;&lt;STRONG&gt;avg_processing_time_per_block&lt;/STRONG&gt; but the requirement is the&amp;nbsp;avg_processing_time_per_block has dynamic value&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My need is to how to assign the&amp;nbsp;&lt;STRONG&gt;avg_processing_time_per_block value as token &lt;/STRONG&gt;in&amp;nbsp;&amp;nbsp;charting.chart.overlayFields&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 08:10:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/684960#M56077</guid>
      <dc:creator>sanjai</dc:creator>
      <dc:date>2024-04-22T08:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Token values to Overlay field in the line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/684963#M56078</link>
      <description>&lt;P&gt;As you are probably aware, the list of overlay fields is a comma-separated list of field name, so that's what you need in your token. You could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(machine) as avg_processing_time_per_block
| eval avg_processing_time_per_block=mvjoin(avg_processing_time_per_block,",")&lt;/LI-CODE&gt;&lt;P&gt;You would then set your token on the done block of the search, using this field from the (first) results row and use it in your display panel settings&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;option name="charting.chart.overlayFields"&amp;gt;$avg_processing_time_per_block$ &amp;lt;/option&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 08:24:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/684963#M56078</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-22T08:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Token values to Overlay field in the line chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/685396#M56130</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; , it worked&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 07:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Passing-Token-values-to-Overlay-field-in-the-line-chart/m-p/685396#M56130</guid>
      <dc:creator>sanjai</dc:creator>
      <dc:date>2024-04-25T07:24:33Z</dc:date>
    </item>
  </channel>
</rss>

