<?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: How to replace the special characters with Space in text field in Dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471564#M30939</link>
    <description>&lt;P&gt;Try rex to change replace special characters with space&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval data="James:bond;sharma"  | rex field=data mode=sed "s/(\w+)(:)(\w+)(;)(\w+)/\1 \3 \5/"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Sep 2019 17:16:10 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2019-09-04T17:16:10Z</dc:date>
    <item>
      <title>How to replace the special characters with Space in text field in Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471563#M30938</link>
      <description>&lt;P&gt;I am looking for replacing "James:bond;sharma" with "James bond sharma"in text box in dashboard.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*  sourcetype=*  $Pattern$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The pattern is the token value for the Text box in Splunk Dashboard.&lt;BR /&gt;
I want to replace all the special characters with space in token value while searching, as I don't want to search for special characters even if it is provided in text box in Splunk dashboard.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 17:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471563#M30938</guid>
      <dc:creator>shraysharma88</dc:creator>
      <dc:date>2019-09-04T17:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the special characters with Space in text field in Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471564#M30939</link>
      <description>&lt;P&gt;Try rex to change replace special characters with space&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval data="James:bond;sharma"  | rex field=data mode=sed "s/(\w+)(:)(\w+)(;)(\w+)/\1 \3 \5/"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Sep 2019 17:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471564#M30939</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-09-04T17:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the special characters with Space in text field in Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471565#M30940</link>
      <description>&lt;P&gt;James:bond;sharma is the input I have given in text box in dashboard.&lt;BR /&gt;
And data in text box can be any thing like ram$shyam%hari.&lt;BR /&gt;
I want to replace every special character with space.&lt;/P&gt;

&lt;P&gt;Below is the search query for panel -: &lt;/P&gt;

&lt;P&gt;index=*  sourcetype=*  $Pattern$&lt;/P&gt;

&lt;P&gt;where Pattern is the token value used for text box in panel of dashboard &lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 17:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471565#M30940</guid>
      <dc:creator>shraysharma88</dc:creator>
      <dc:date>2019-09-04T17:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the special characters with Space in text field in Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471566#M30941</link>
      <description>&lt;P&gt;try this then &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex field=data mode=sed "s/(\w+)([^\w]+)(\w+)([^\w]+)(\w+)/\1 \3 \5/"&lt;/CODE&gt;&lt;BR /&gt;
this will replace any special character with space&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 17:37:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471566#M30941</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-09-04T17:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the special characters with Space in text field in Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471567#M30942</link>
      <description>&lt;P&gt;Here's one way you can do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval data=replace(data,"\W"," ")
| eval data=replace(data,"\ {2,}"," ")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will remove any non-word characters, swapping for a space. Then replace any sequential spaces with a single space.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 17:51:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471567#M30942</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-09-04T17:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the special characters with Space in text field in Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471568#M30943</link>
      <description>&lt;P&gt;index=TEST1  sourcetype=TEST2 |eval Patterns="VNRDUS33_:" | eval Pattern1 = upper(replace(Patterns,"([-:._])"," "))| return Pattern1 | search Pattern1&lt;/P&gt;

&lt;P&gt;I am facing issue while trying to search the pattern now.&lt;BR /&gt;
Replace is working as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471568#M30943</guid>
      <dc:creator>shraysharma88</dc:creator>
      <dc:date>2020-09-30T02:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the special characters with Space in text field in Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471569#M30944</link>
      <description>&lt;P&gt;What are you using &lt;CODE&gt;return&lt;/CODE&gt; for here? &lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 13:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-replace-the-special-characters-with-Space-in-text-field/m-p/471569#M30944</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-09-05T13:33:30Z</dc:date>
    </item>
  </channel>
</rss>

