<?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: Simple field transformation to split firstname lastname - help! in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763032#M120801</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/311509"&gt;@BradOH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;where did you insert the transformation to split names: in a search or where?&lt;/P&gt;&lt;P&gt;if in search I'd use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| rename "Full Name" AS Full_Name
| rex field=Full_Name "?&amp;lt;Last_Name&amp;gt;^\S+)\s+(?&amp;lt;First_Name&amp;gt;.+$"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2026 16:27:04 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2026-08-20T16:27:04Z</dc:date>
    <item>
      <title>Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763028#M120799</link>
      <description>&lt;P&gt;Hello all, I've been working for the better part of a day trying to get a simple field transformation working without success. Here's the scenario.&lt;/P&gt;&lt;P&gt;We have a source CSV file which is pulled into Splunk via file input. One of the fields is formatted "Lastname Firstname" (with space).&amp;nbsp; The field name in the source file also has a space in the name (which could be the issue, who knows).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added a field transformation to split into separate fields, as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Regular expression&lt;/STRONG&gt;&amp;nbsp;(?&amp;lt;Last_Name&amp;gt;^\S+)\s+(?&amp;lt;First_Name&amp;gt;.+$)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Source key&amp;nbsp;&lt;/STRONG&gt;"Full Name" (enclosed in quotes in Splunk Web interface due to space in field name)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I tried two different options. The first was adding a reference to this field transformation in the source type definition, which caused the following errors to appear in Splunk.log&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN class=""&gt;Regex&lt;/SPAN&gt;&lt;SPAN&gt; '&lt;/SPAN&gt;&lt;SPAN class=""&gt;extract_person_name&lt;/SPAN&gt;&lt;SPAN&gt;' &lt;/SPAN&gt;&lt;SPAN class=""&gt;has&lt;/SPAN&gt; &lt;SPAN class=""&gt;no&lt;/SPAN&gt; &lt;SPAN class=""&gt;capturing&lt;/SPAN&gt; &lt;SPAN class=""&gt;groups&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;transform_name=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;EXTRACT-Person_Name&lt;/SPAN&gt;&lt;SPAN&gt;'.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I've tested the regex, it works...&lt;/P&gt;&lt;P&gt;I also tried removing this reference in the source type and adding a field extraction definition referencing the transform, which appears to do nothing.&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp; I've googled and searched the documentation and forums without finding a solution...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 15:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763028#M120799</guid>
      <dc:creator>BradOH</dc:creator>
      <dc:date>2026-08-20T15:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763032#M120801</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/311509"&gt;@BradOH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;where did you insert the transformation to split names: in a search or where?&lt;/P&gt;&lt;P&gt;if in search I'd use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| rename "Full Name" AS Full_Name
| rex field=Full_Name "?&amp;lt;Last_Name&amp;gt;^\S+)\s+(?&amp;lt;First_Name&amp;gt;.+$"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 16:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763032#M120801</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2026-08-20T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763034#M120803</link>
      <description>&lt;P&gt;I'm trying to configure a field transformation so the date ingested from the CSV to our index will be in the proper format, rather than fiddling with the data inline in reports...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 16:37:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763034#M120803</guid>
      <dc:creator>BradOH</dc:creator>
      <dc:date>2026-08-20T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763035#M120804</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/311509"&gt;@BradOH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you can do this pre-processing the CSV before ingestion or at search time using my search.&lt;/P&gt;&lt;P&gt;I'm not sure that it's possible to apply the transformation at index time.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 16:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763035#M120804</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2026-08-20T16:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763037#M120805</link>
      <description>&lt;P&gt;Please share the full props.conf stanza for the sourcetype and the referenced transforms.conf stanzas.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 17:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763037#M120805</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2026-08-20T17:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763042#M120806</link>
      <description>&lt;P&gt;Thanks, here you go as I originally configured where the source type directly references the transform (which I had assumed would work...)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROPS.CONF&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[test-source:csv]
BREAK_ONLY_BEFORE_DATE = 
DATETIME_CONFIG = 
FIELD_DELIMITER = ,
HEADER_FIELD_LINE_NUMBER = 1
INDEXED_EXTRACTIONS = csv
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIMESTAMP_FIELDS = "Event Date_Time"
TIME_FORMAT = %m/%d/%Y %H:%M
TZ = America/New_York
category = Structured
disabled = false
pulldown_type = 1
Extract-Person_Name = extract_person_name&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;TRANSFORMS.CONF&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[extract_person_name]
CLEAN_KEYS = 0
REGEX = (?&amp;lt;Last_Name&amp;gt;^\S+)\s+(?&amp;lt;First_Name&amp;gt;.+$)
SOURCE_KEY = "Person Name"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 19:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763042#M120806</guid>
      <dc:creator>BradOH</dc:creator>
      <dc:date>2026-08-20T19:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763043#M120807</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;EXTRACT&lt;/FONT&gt; attribute requires a regex value containing a named capture group.&amp;nbsp; The listed props don't have that so that's why the error is reported.&lt;/P&gt;&lt;P&gt;To extract a field using a transform, use either the &lt;FONT face="courier new,courier"&gt;REPORT&lt;/FONT&gt; (search time) or &lt;FONT face="courier new,courier"&gt;TRANSFORM&lt;/FONT&gt; (index time) attribute.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 19:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763043#M120807</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2026-08-20T19:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763045#M120808</link>
      <description>&lt;P&gt;Thanks, appears you've got me halfway there, as I'm getting a different error at least....&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Invalid key-value parser, ignoring it, transform_name='extract_person_name'.&lt;/LI-CODE&gt;&lt;P&gt;The transform is unchanged, I just updated the attribute in the source type definition (to REPORT-Person_Name)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 20:21:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763045#M120808</guid>
      <dc:creator>BradOH</dc:creator>
      <dc:date>2026-08-20T20:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763046#M120809</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; That may have been a permission issue.&amp;nbsp; I've updated the field transformation to Global permissions, which seems to have eliminated all the errors in Splunk.log, but still not seeing the extracted fields in the index...&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;| search index=test-extract&lt;/FONT&gt; shows the original CSV extracted fields but not the firstname/lastnames which should be extracted.&amp;nbsp; Still missing something...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 20:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763046#M120809</guid>
      <dc:creator>BradOH</dc:creator>
      <dc:date>2026-08-20T20:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Simple field transformation to split firstname lastname - help!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763047#M120810</link>
      <description>&lt;P&gt;Hey, finally figured it out.&amp;nbsp; After updating the attribute to REPORT as suggested and updating permission to GLOBAL on transformation, this eliminated the errors, but fields were still not extracting.&lt;/P&gt;&lt;P&gt;It appears the quotes I added around the original key field name (as the field in the CSV had a space) were not required.&amp;nbsp; Once I removed the quotes from the key field name, all works as expected...&lt;/P&gt;&lt;P&gt;Thanks for your assistance, learned a lot figuring this one out!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 20:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-field-transformation-to-split-firstname-lastname-help/m-p/763047#M120810</guid>
      <dc:creator>BradOH</dc:creator>
      <dc:date>2026-08-20T20:32:03Z</dc:date>
    </item>
  </channel>
</rss>

