<?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: In Dashboard: Remove Underscore in token in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/In-Dashboard-Remove-Underscore-in-token/m-p/710741#M117388</link>
    <description>&lt;P&gt;Thank you so much for the response and yes it worked.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 13:12:37 GMT</pubDate>
    <dc:creator>Splunkmm</dc:creator>
    <dc:date>2025-02-05T13:12:37Z</dc:date>
    <item>
      <title>In Dashboard: Remove Underscore in token</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-Dashboard-Remove-Underscore-in-token/m-p/710737#M117386</link>
      <description>&lt;P&gt;Hi, I have a token as below in my dashboard,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;set token="mySource"&amp;gt;replace($numSuffix$,"_","")&amp;lt;/set&amp;gt;&lt;BR /&gt;&lt;BR /&gt;and I have another token utilising the above,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;set token="source"&amp;gt;$indexg$ connection $mySource"&amp;lt;/set&amp;gt;&lt;BR /&gt;&lt;BR /&gt;In Query I have,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;search&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;query&amp;gt;$source$ | timechart count by host &amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/search&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately this is not working, In splunk section query, its not evaluating.&lt;BR /&gt;&lt;BR /&gt;Its reflecting as,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index=xer&amp;nbsp;connection&amp;nbsp;replace(_45t66,"_","") | timechart count by host&lt;BR /&gt;&lt;BR /&gt;I tried with&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;set token="mySource"&amp;gt;replace($numSuffix|s$,"_","")&amp;lt;/set&amp;gt;&lt;BR /&gt;But its of no use.&lt;BR /&gt;&lt;BR /&gt;Can someone help me with this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 12:55:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-Dashboard-Remove-Underscore-in-token/m-p/710737#M117386</guid>
      <dc:creator>Splunkmm</dc:creator>
      <dc:date>2025-02-05T12:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: In Dashboard: Remove Underscore in token</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-Dashboard-Remove-Underscore-in-token/m-p/710740#M117387</link>
      <description>&lt;P&gt;Try using&amp;nbsp;eval rather than set&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;eval token="mySource"&amp;gt;replace($numSuffix$,"_","")&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Feb 2025 13:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-Dashboard-Remove-Underscore-in-token/m-p/710740#M117387</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-02-05T13:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: In Dashboard: Remove Underscore in token</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-Dashboard-Remove-Underscore-in-token/m-p/710741#M117388</link>
      <description>&lt;P&gt;Thank you so much for the response and yes it worked.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 13:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-Dashboard-Remove-Underscore-in-token/m-p/710741#M117388</guid>
      <dc:creator>Splunkmm</dc:creator>
      <dc:date>2025-02-05T13:12:37Z</dc:date>
    </item>
  </channel>
</rss>

