<?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: replace String issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/replace-String-issue/m-p/507643#M141908</link>
    <description>&lt;P&gt;Thank you @&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/88735" target="_blank"&gt;efavreau&lt;/A&gt; !&lt;/P&gt;&lt;P&gt;I wasn’t able to use mvexpand but the link you advised suggested See Also &lt;EM&gt;split&lt;/EM&gt; function. I realized that “A1 | A2” coming as one String and that’s why&lt;/P&gt;&lt;P&gt;|replace “A1” with “Apple”&lt;/P&gt;&lt;P&gt;wasn’t recognizing “A1 | A2”, what I did was, I added&lt;/P&gt;&lt;P&gt;| eval product=split(product, “ | “)&lt;/P&gt;&lt;P&gt;And now I’m getting the result I wanted.&lt;/P&gt;&lt;P&gt;Apple&lt;BR /&gt;Grape&lt;BR /&gt;Apple &amp;nbsp;Grape&lt;/P&gt;&lt;P&gt;Now I have to figure out how to add “Multiple products” text if there are more than one product, but I’ll open separate question.&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 17:50:44 GMT</pubDate>
    <dc:creator>maxmukimov</dc:creator>
    <dc:date>2020-07-06T17:50:44Z</dc:date>
    <item>
      <title>replace String issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/replace-String-issue/m-p/507615#M141903</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I’m trying to replace product codes with product names like&lt;BR /&gt;| replace “A1” with “Apple”, “A2” with “Grape”, “A3” with “ Watermelon”&lt;BR /&gt;I’m getting what I want except when there are more than one value in Product code field.&lt;BR /&gt;Apple&lt;BR /&gt;Grape&lt;BR /&gt;A1 | A2&lt;BR /&gt;How can I fix the row with multiple values?&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 16:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/replace-String-issue/m-p/507615#M141903</guid>
      <dc:creator>maxmukimov</dc:creator>
      <dc:date>2020-07-06T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: replace String issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/replace-String-issue/m-p/507618#M141904</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223362"&gt;@maxmukimov&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;You'll need to give us more detail, like a sample of your logs (with any sensitive information taken out). Otherwise, I'm thinking the mvexpand command would you help in this situation. &lt;A href="https://docs.splunk.com/Documentation/Splunk/Latest/SearchReference/Mvexpand" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/Latest/SearchReference/Mvexpand&lt;/A&gt;&lt;/P&gt;&lt;P&gt;###&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 16:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/replace-String-issue/m-p/507618#M141904</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2020-07-06T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: replace String issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/replace-String-issue/m-p/507643#M141908</link>
      <description>&lt;P&gt;Thank you @&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/88735" target="_blank"&gt;efavreau&lt;/A&gt; !&lt;/P&gt;&lt;P&gt;I wasn’t able to use mvexpand but the link you advised suggested See Also &lt;EM&gt;split&lt;/EM&gt; function. I realized that “A1 | A2” coming as one String and that’s why&lt;/P&gt;&lt;P&gt;|replace “A1” with “Apple”&lt;/P&gt;&lt;P&gt;wasn’t recognizing “A1 | A2”, what I did was, I added&lt;/P&gt;&lt;P&gt;| eval product=split(product, “ | “)&lt;/P&gt;&lt;P&gt;And now I’m getting the result I wanted.&lt;/P&gt;&lt;P&gt;Apple&lt;BR /&gt;Grape&lt;BR /&gt;Apple &amp;nbsp;Grape&lt;/P&gt;&lt;P&gt;Now I have to figure out how to add “Multiple products” text if there are more than one product, but I’ll open separate question.&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 17:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/replace-String-issue/m-p/507643#M141908</guid>
      <dc:creator>maxmukimov</dc:creator>
      <dc:date>2020-07-06T17:50:44Z</dc:date>
    </item>
  </channel>
</rss>

