<?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: auto-decode UTF-8 encoded-string in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/497636#M32581</link>
    <description>&lt;P&gt;Create a &lt;CODE&gt;macro&lt;/CODE&gt; and put a giant &lt;CODE&gt;sed&lt;/CODE&gt; command in that and then create a &lt;CODE&gt;Calculated Field&lt;/CODE&gt; for your &lt;CODE&gt;sourcetype&lt;/CODE&gt;.  For example, here is one that I wrote to do URL decoding:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=fieldURLencoded mode=sed "s:%25:%:g s:%20: :g s:%3C:&amp;lt;:g s:%3E:&amp;gt;:g s:%23:#:g s:%7B:{:g s:%7D:}:g s:%7C:\|:g s:%5C:\\\:g s:%5E:\^:g s:%7E:~:g s:%5B:\[:g s:%5D:\]:g s:%60:\`:g s:%3B:;:g s:%2F:/:g s:%3F:\?:g s/%3A/:/g s:%40:@:g s:%3D:=:g s:%26:&amp;amp;:g s:%24:\$:g s:%21:\!:g s:%2A:\*:g s:%22:\":g s:%28:\(:g s:%29:\):g s:%2B:\+:g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Dec 2019 21:11:22 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-12-06T21:11:22Z</dc:date>
    <item>
      <title>auto-decode UTF-8 encoded-string</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/497635#M32580</link>
      <description>&lt;P&gt;In our system we have 2 pipelines: one via &lt;EM&gt;Kafka-&amp;gt;Connector-&amp;gt;HEC-&amp;gt;Splunk&lt;/EM&gt;, the other &lt;EM&gt;DB Connect-&amp;gt;Splunk&lt;/EM&gt;.&lt;BR /&gt;
Both pipelines are transporting data with the same sourcetype, which is marked with UTF-8 in &lt;STRONG&gt;props.conf&lt;/STRONG&gt;: &lt;CODE&gt;CHARSET=UTF-8&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;UTF-8 strings that flow thru &lt;EM&gt;DB Connect&lt;/EM&gt; are shown in Search app in their decoded format:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8032i10AE10E5DF52BA14/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;While the data flowing via &lt;EM&gt;Connector-&amp;gt;HEC&lt;/EM&gt; is still encoded:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8033i83D48A2FFFA8B9D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Later on, the encoded values (such as "\u30a2...") are shown in the drop-down filters and so on.&lt;/P&gt;

&lt;P&gt;Advise is very appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 22:18:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/497635#M32580</guid>
      <dc:creator>mushkevych</dc:creator>
      <dc:date>2019-12-05T22:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: auto-decode UTF-8 encoded-string</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/497636#M32581</link>
      <description>&lt;P&gt;Create a &lt;CODE&gt;macro&lt;/CODE&gt; and put a giant &lt;CODE&gt;sed&lt;/CODE&gt; command in that and then create a &lt;CODE&gt;Calculated Field&lt;/CODE&gt; for your &lt;CODE&gt;sourcetype&lt;/CODE&gt;.  For example, here is one that I wrote to do URL decoding:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=fieldURLencoded mode=sed "s:%25:%:g s:%20: :g s:%3C:&amp;lt;:g s:%3E:&amp;gt;:g s:%23:#:g s:%7B:{:g s:%7D:}:g s:%7C:\|:g s:%5C:\\\:g s:%5E:\^:g s:%7E:~:g s:%5B:\[:g s:%5D:\]:g s:%60:\`:g s:%3B:;:g s:%2F:/:g s:%3F:\?:g s/%3A/:/g s:%40:@:g s:%3D:=:g s:%26:&amp;amp;:g s:%24:\$:g s:%21:\!:g s:%2A:\*:g s:%22:\":g s:%28:\(:g s:%29:\):g s:%2B:\+:g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Dec 2019 21:11:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/497636#M32581</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-06T21:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: auto-decode UTF-8 encoded-string</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/497637#M32582</link>
      <description>&lt;P&gt;Thank you @woodcock. it seems as manual UTF-8 decoding function. I am wondering if Splunk has anything in place for this.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2019 00:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/497637#M32582</guid>
      <dc:creator>mushkevych</dc:creator>
      <dc:date>2019-12-07T00:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: auto-decode UTF-8 encoded-string</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/497638#M32583</link>
      <description>&lt;P&gt;Check SplunkBase.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2019 02:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/497638#M32583</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-07T02:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: auto-decode UTF-8 encoded-string</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/506218#M33646</link>
      <description>&lt;P&gt;My friend&amp;nbsp;@Anonymous&amp;nbsp;just wrote one and should be posting to splunkbase soon!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 21:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/506218#M33646</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-06-25T21:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: auto-decode UTF-8 encoded-string</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/693370#M56784</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Splunk Cloud does not support "MIME Decoder Add-on for Cisco ESA". Did your colleague publish a decoder? I haven't found anything on Splunkbase.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 12:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/693370#M56784</guid>
      <dc:creator>DanielP1</dc:creator>
      <dc:date>2024-07-15T12:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: auto-decode UTF-8 encoded-string</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/693397#M56786</link>
      <description>&lt;P&gt;Well, this is a rather old thread and Greg hasn't been much online lately. You might get bigger chance of getting a reply if you post your question about an app in a new thread. (possibly linking to this one for reference).&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 19:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/auto-decode-UTF-8-encoded-string/m-p/693397#M56786</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-15T19:26:44Z</dc:date>
    </item>
  </channel>
</rss>

