<?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: Dashboard Studio adding prefix &amp;amp; suffix problem in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675984#M55352</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use a multiselect drilldown input to select items I want to check, so the inputs would be like&lt;/P&gt;&lt;P&gt;"NB, IPhone, Mac, PC", or&lt;/P&gt;&lt;P&gt;"NB, IPhone"&lt;/P&gt;&lt;P&gt;and I want to change inputs into another format like below so I can use it in subsearch:&lt;/P&gt;&lt;P&gt;Device=NB OR Device=IPhone OR Device=Mac OR Device=PC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 01:07:28 GMT</pubDate>
    <dc:creator>ChillaXin</dc:creator>
    <dc:date>2024-01-31T01:07:28Z</dc:date>
    <item>
      <title>Dashboard Studio adding prefix &amp; suffix problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675146#M55285</link>
      <description>&lt;P&gt;Hi, everyone,&lt;/P&gt;&lt;P&gt;I have an old dashboard that I want to convert to the Dashboard Studio format. However, it seems that the new Dashboard Studio does not support the use of prefix, suffix, and delimiter in the same way. Is there any way to achieve the same effect using a search query?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 08:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675146#M55285</guid>
      <dc:creator>ChillaXin</dc:creator>
      <dc:date>2024-01-23T08:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio adding prefix &amp; suffix problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675667#M55318</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Hi there,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;While Studio doesn't directly support prefix,&lt;/SPAN&gt;&lt;SPAN&gt; suffix,&lt;/SPAN&gt;&lt;SPAN&gt; and delimiter the same way,&lt;/SPAN&gt;&lt;SPAN&gt; here are some workarounds using search queries:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Concatenate Strings:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Use the&amp;nbsp;&lt;/SPAN&gt;concat&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;mvexpand&lt;SPAN&gt;&amp;nbsp;functions in your search query to combine desired elements (prefix,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;value,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;suffix,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;delimiter) into a single field.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=_internal | search name="myMetric" | eval combinedValue=concat("prefix_",&lt;/SPAN&gt;&lt;SPAN&gt; value,&lt;/SPAN&gt;&lt;SPAN&gt; "_suffix",&lt;/SPAN&gt;&lt;SPAN&gt; "|")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Leverage Panel Formatting:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Customize panel formatting options like titles,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;labels,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and tooltips to display combined values as needed.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;3. Utilize Calculated Fields:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Create calculated fields in your search query to pre-process data and ensure the desired format within the panel.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;4. Consider Panel Types:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Explore different panel types in Studio that might natively support your formatting needs (e.&lt;/SPAN&gt;&lt;SPAN&gt;g.,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;single value panels,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;charts with custom labels).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;5. Reference Older Formats:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;In Studio,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;you can still reference and embed panels from your old dashboard format,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;providing some continuity while exploring new features.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Remember:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Adapt the specific solution based on your dashboard's unique requirements and desired output format.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Experiment with different approaches and panel configurations to find the best fit for your use case.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;~ If the reply helps, a Karma upvote would be appreciated&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 10:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675667#M55318</guid>
      <dc:creator>datadevops</dc:creator>
      <dc:date>2024-01-28T10:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio adding prefix &amp; suffix problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675839#M55338</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;concatenate strings that I want successfully, but i can't use it to find data when I put the strings into subsearch.&lt;BR /&gt;&lt;BR /&gt;Here's my code below:&lt;/P&gt;&lt;P&gt;index="list"&amp;nbsp; device=C*&lt;BR /&gt;| eval x="IPAD,NB,PC"&lt;BR /&gt;| eval x=split(x, ",")&lt;BR /&gt;| mvexpand x&lt;BR /&gt;| eval combine= "device_No=" . x&lt;BR /&gt;| stats values(combine) as combine&lt;BR /&gt;| eval final_condition = mvjoin(combine, " OR ")&lt;BR /&gt;| search final_condition&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 01:54:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675839#M55338</guid>
      <dc:creator>ChillaXin</dc:creator>
      <dc:date>2024-01-30T01:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio adding prefix &amp; suffix problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675843#M55339</link>
      <description>&lt;P&gt;I would suggest not using mvexpand, as in your example search - in your example you will triple the raw events.&lt;/P&gt;&lt;P&gt;Can you provide a sample of the inputs you want to be able to select&lt;/P&gt;&lt;P&gt;DS makes a multiselect token= a,b,c so you can use this logic in your search that wants to use the token&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index 
    [ 
  | makeresults
  | fields - _time
  | eval  &amp;lt;your_field_name&amp;gt;=split("$token$", ",")
  | mvexpand &amp;lt;your_field_name&amp;gt;
]&lt;/LI-CODE&gt;&lt;P&gt;How were you using prefix/suffix/delim in your old dashboard?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 03:53:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675843#M55339</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-01-30T03:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio adding prefix &amp; suffix problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675984#M55352</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use a multiselect drilldown input to select items I want to check, so the inputs would be like&lt;/P&gt;&lt;P&gt;"NB, IPhone, Mac, PC", or&lt;/P&gt;&lt;P&gt;"NB, IPhone"&lt;/P&gt;&lt;P&gt;and I want to change inputs into another format like below so I can use it in subsearch:&lt;/P&gt;&lt;P&gt;Device=NB OR Device=IPhone OR Device=Mac OR Device=PC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 01:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675984#M55352</guid>
      <dc:creator>ChillaXin</dc:creator>
      <dc:date>2024-01-31T01:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio adding prefix &amp; suffix problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675994#M55354</link>
      <description>&lt;P&gt;That's exactly what the subsearch will do. The output of a subsearch is to make&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;field&amp;gt;=&amp;lt;value&amp;gt; OR &amp;lt;field&amp;gt;=&amp;lt;value&amp;gt;...&lt;/LI-CODE&gt;&lt;P&gt;where the results of the subsearch are in a table with field name 'field'. You can see the output of the subsearch just by running the search manually as a normal search and adding&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| format&lt;/LI-CODE&gt;&lt;P&gt;to the end of the search, which is implicit in the subsearch&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 06:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/675994#M55354</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-01-31T06:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Studio adding prefix &amp; suffix problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/711622#M58200</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have just opened code and adjusted and it works).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LIS_0-1739545610878.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/34516i7053620C77BE9117/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LIS_0-1739545610878.png" alt="LIS_0-1739545610878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 15:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-adding-prefix-amp-suffix-problem/m-p/711622#M58200</guid>
      <dc:creator>LIS</dc:creator>
      <dc:date>2025-02-14T15:07:50Z</dc:date>
    </item>
  </channel>
</rss>

