<?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: Field extract and zip them. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488626#M136475</link>
    <description>&lt;P&gt;Hi @sandeepmakkena,&lt;/P&gt;

&lt;P&gt;If you have kv_mode on auto the fields &lt;CODE&gt;phone&lt;/CODE&gt; and &lt;CODE&gt;commitCode&lt;/CODE&gt; should be automatically extracted. As shown here :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Automatickey-valuefieldextractionsatsearch-time"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Automatickey-valuefieldextractionsatsearch-time&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To zip the two fields together with a semi-colon seperator you can use the following eval:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval ZippedField=mvzip(phone, commitCode, ";")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if that helps and if you require a regex for the extraction instead of the automated kv extraction.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
    <pubDate>Sun, 22 Sep 2019 10:18:46 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2019-09-22T10:18:46Z</dc:date>
    <item>
      <title>Field extract and zip them.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488624#M136473</link>
      <description>&lt;P&gt;(product=X Phone , 512 ГБ, золотой,shipMethodCode=E3,qty=1,deliveryType=STH,partNumber=MRU/A,deliveryDate=4 Окт - 11 Окт,commitCode=200,resolvedDate=4 Окт - 11 Окт,product=Phone, (PRODUCT)RED_Phone,shipMethodCode=E3,qty=1,deliveryType=STH,partNumber=M2ZM/A,deliveryDate=Пн 23 Сен,commitCode=24,resolvedDate=Пн 23 Сен)&lt;/P&gt;

&lt;P&gt;I want to extract product and commitCode and Zip them.&lt;BR /&gt;
I want display&lt;BR /&gt;
Phone;commitCode &lt;BR /&gt;
X Phone;200&lt;BR /&gt;
RED_Phone;24&lt;/P&gt;

&lt;P&gt;Can someone help please.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 20:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488624#M136473</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2019-09-20T20:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Field extract and zip them.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488625#M136474</link>
      <description>&lt;P&gt;hmm your product characters are in different formats.&lt;BR /&gt;
you have product= and (PRODUCT) , are they the only expected formats before the product name is mentioned in your events?&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2019 06:50:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488625#M136474</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-09-21T06:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Field extract and zip them.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488626#M136475</link>
      <description>&lt;P&gt;Hi @sandeepmakkena,&lt;/P&gt;

&lt;P&gt;If you have kv_mode on auto the fields &lt;CODE&gt;phone&lt;/CODE&gt; and &lt;CODE&gt;commitCode&lt;/CODE&gt; should be automatically extracted. As shown here :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Automatickey-valuefieldextractionsatsearch-time"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Automatickey-valuefieldextractionsatsearch-time&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To zip the two fields together with a semi-colon seperator you can use the following eval:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval ZippedField=mvzip(phone, commitCode, ";")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if that helps and if you require a regex for the extraction instead of the automated kv extraction.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 10:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488626#M136475</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-09-22T10:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Field extract and zip them.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488627#M136476</link>
      <description>&lt;P&gt;I am new to this data. product= and (PRODUCT) happens when a user orders two or more at one transaction. I am not that's what you're looking for. &lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 00:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488627#M136476</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2019-09-23T00:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field extract and zip them.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488628#M136477</link>
      <description>&lt;P&gt;@sandeepmakkena, please let me know if the answer was helpful and if you need further help.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 06:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extract-and-zip-them/m-p/488628#M136477</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-09-23T06:53:44Z</dc:date>
    </item>
  </channel>
</rss>

