<?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 Splunk Lastname firstname formating in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Lastname-firstname-formating/m-p/397892#M70945</link>
    <description>&lt;P&gt;I am using this query to fetch current logged in user "|rest splunk_server=local /services/authentication/current-context | fields realname"&lt;BR /&gt;
It displays real name as Lastname, Firstname&lt;BR /&gt;
Now i want a nother field with value "Firstname Lastname" format&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 13:31:29 GMT</pubDate>
    <dc:creator>arunsundarm</dc:creator>
    <dc:date>2019-07-16T13:31:29Z</dc:date>
    <item>
      <title>Splunk Lastname firstname formating</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Lastname-firstname-formating/m-p/397892#M70945</link>
      <description>&lt;P&gt;I am using this query to fetch current logged in user "|rest splunk_server=local /services/authentication/current-context | fields realname"&lt;BR /&gt;
It displays real name as Lastname, Firstname&lt;BR /&gt;
Now i want a nother field with value "Firstname Lastname" format&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 13:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Lastname-firstname-formating/m-p/397892#M70945</guid>
      <dc:creator>arunsundarm</dc:creator>
      <dc:date>2019-07-16T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Lastname firstname formating</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Lastname-firstname-formating/m-p/397893#M70946</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;rex&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval name=realname | rex field=name mode=sed "s/([^,]+), (.*)/\2 \1/"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:57:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Lastname-firstname-formating/m-p/397893#M70946</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-07-16T14:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Lastname firstname formating</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Lastname-firstname-formating/m-p/397894#M70947</link>
      <description>&lt;P&gt;Thanks for reminding me that Sed can do this, but was originally curious about the eval way.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 16:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Lastname-firstname-formating/m-p/397894#M70947</guid>
      <dc:creator>Nextbeat</dc:creator>
      <dc:date>2020-04-14T16:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Lastname firstname formating</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Lastname-firstname-formating/m-p/397895#M70948</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | eval name=mvindex(split(realname,","),1).",".mvindex(split(realname,","),0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 10:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Lastname-firstname-formating/m-p/397895#M70948</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-15T10:21:05Z</dc:date>
    </item>
  </channel>
</rss>

