<?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 split a field into 2 different fields using eval in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-field-into-two-different-fields-using-eval-in/m-p/643229#M222818</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/79709"&gt;@pavanae&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 14:51:15 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-05-12T14:51:15Z</dc:date>
    <item>
      <title>How to split a field into two different fields using eval in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-field-into-two-different-fields-using-eval-in/m-p/643221#M222813</link>
      <description>&lt;P&gt;I have a field as follows in the logs&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;user="userAbc1 (host1234)"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As you can see both the username and hostname fields are together in the user field. Now how do I apply regex and separate both the fields into 2 corresponding fields as follows&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;user=userAbc1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;host=host1234&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 12:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-field-into-two-different-fields-using-eval-in/m-p/643221#M222813</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2023-05-15T12:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a field into 2 different fields using eval in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-field-into-two-different-fields-using-eval-in/m-p/643223#M222814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/79709"&gt;@pavanae&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=user "^(?&amp;lt;user&amp;gt;.*)\s+\((?&amp;lt;host&amp;gt;[^\)]*)\)"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-field-into-two-different-fields-using-eval-in/m-p/643223#M222814</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-12T14:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a field into 2 different fields using eval in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-field-into-two-different-fields-using-eval-in/m-p/643225#M222815</link>
      <description>&lt;P&gt;Try this &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=foo "(?&amp;lt;user&amp;gt;\S+)\s\((?&amp;lt;host&amp;gt;=[^\(]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-field-into-two-different-fields-using-eval-in/m-p/643225#M222815</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-12T14:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a field into 2 different fields using eval in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-field-into-two-different-fields-using-eval-in/m-p/643229#M222818</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/79709"&gt;@pavanae&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:51:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-a-field-into-two-different-fields-using-eval-in/m-p/643229#M222818</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-12T14:51:15Z</dc:date>
    </item>
  </channel>
</rss>

