<?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 How to divide field value to 2 fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-field-value-to-2-fields/m-p/596273#M207574</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I requested to exclude 2 values from one field value.&lt;/P&gt;
&lt;P&gt;I mean for each event I have "file_name", that written in the same shape.&lt;/P&gt;
&lt;P&gt;the city is first, and than the tool, so i want to extract these value for each event&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;file_name&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;city&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;tool&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="69px"&gt;&lt;SPAN&gt;montreal - tool3 - SFR - Alert ID 123456 - (3 May 2022 01:20:24 IDT)&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="69px"&gt;montreal&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="69px"&gt;tool3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Tue, 03 May 2022 16:13:09 GMT</pubDate>
    <dc:creator>ednk</dc:creator>
    <dc:date>2022-05-03T16:13:09Z</dc:date>
    <item>
      <title>How to divide field value to 2 fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-field-value-to-2-fields/m-p/596273#M207574</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I requested to exclude 2 values from one field value.&lt;/P&gt;
&lt;P&gt;I mean for each event I have "file_name", that written in the same shape.&lt;/P&gt;
&lt;P&gt;the city is first, and than the tool, so i want to extract these value for each event&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;file_name&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;city&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;tool&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="69px"&gt;&lt;SPAN&gt;montreal - tool3 - SFR - Alert ID 123456 - (3 May 2022 01:20:24 IDT)&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="69px"&gt;montreal&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="69px"&gt;tool3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 03 May 2022 16:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-divide-field-value-to-2-fields/m-p/596273#M207574</guid>
      <dc:creator>ednk</dc:creator>
      <dc:date>2022-05-03T16:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: divide field value to 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-field-value-to-2-fields/m-p/596275#M207575</link>
      <description>&lt;P&gt;I'd use &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=file_name "(?&amp;lt;city&amp;gt;\S+)\s*-\s*(?&amp;lt;tool&amp;gt;\S+)"&lt;/LI-CODE&gt;&lt;P&gt;The regex may need to be adjusted depending on the expected values for city and tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 15:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-divide-field-value-to-2-fields/m-p/596275#M207575</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-03T15:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: divide field value to 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-field-value-to-2-fields/m-p/596370#M207607</link>
      <description>&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;and how can&amp;nbsp; I extract the time "&lt;SPAN&gt;3 May 2022 01:20:24" ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 12:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-divide-field-value-to-2-fields/m-p/596370#M207607</guid>
      <dc:creator>ednk</dc:creator>
      <dc:date>2022-05-04T12:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: divide field value to 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-field-value-to-2-fields/m-p/596374#M207609</link>
      <description>&lt;P&gt;That's easy to do with a separate rex command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=file_name "\((?&amp;lt;timestamp&amp;gt;[^\)]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 May 2022 12:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-divide-field-value-to-2-fields/m-p/596374#M207609</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-04T12:37:16Z</dc:date>
    </item>
  </channel>
</rss>

