<?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 extract the user and move it to a field in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-user-and-move-it-to-a-field-in-Splunk/m-p/632958#M219875</link>
    <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;meant&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval user = mvindex(split(xad, "/"), 2)&lt;/LI-CODE&gt;&lt;P&gt;Having said that, can you share the failed rex and/or the full events (anonymised, of course) in a code block &amp;lt;/&amp;gt; to preserve the format of the event?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 10:32:51 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-03-02T10:32:51Z</dc:date>
    <item>
      <title>How to extract the user and move it to a field in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-user-and-move-it-to-a-field-in-Splunk/m-p/632902#M219842</link>
      <description>&lt;P&gt;How to extract the following user and move it to a field in Splunk?&lt;BR /&gt;message: xad="/home/andy"&lt;BR /&gt;message: xad="/home/george"&lt;BR /&gt;message: xad="/home/cindy"&lt;BR /&gt;and a lot more..&lt;BR /&gt;I would like to get an output as follows.&amp;nbsp;&amp;nbsp;&amp;nbsp; Because of the quote " before /home, Splunk rejected my regex. Please help. Thanks&lt;BR /&gt;user&amp;nbsp;&amp;nbsp;&lt;BR /&gt;==== &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;andy&lt;BR /&gt;george&lt;BR /&gt;cindy&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 03:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-user-and-move-it-to-a-field-in-Splunk/m-p/632902#M219842</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-03-02T03:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the user and move it to a field in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-user-and-move-it-to-a-field-in-Splunk/m-p/632908#M219845</link>
      <description>&lt;P&gt;You obviously has a field named xad. &amp;nbsp;From this, no need for rex.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval user = mvindex(split(xad, "/"), 1)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Mar 2023 04:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-user-and-move-it-to-a-field-in-Splunk/m-p/632908#M219845</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-03-02T04:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the user and move it to a field in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-user-and-move-it-to-a-field-in-Splunk/m-p/632958#M219875</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;meant&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval user = mvindex(split(xad, "/"), 2)&lt;/LI-CODE&gt;&lt;P&gt;Having said that, can you share the failed rex and/or the full events (anonymised, of course) in a code block &amp;lt;/&amp;gt; to preserve the format of the event?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 10:32:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-user-and-move-it-to-a-field-in-Splunk/m-p/632958#M219875</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-02T10:32:51Z</dc:date>
    </item>
  </channel>
</rss>

