<?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: Defining fields in transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107285#M22558</link>
    <description>&lt;P&gt;You will have to backslash out the "^" because it is an anchor in REGEX. &lt;/P&gt;

&lt;P&gt;I took your log snippet and used the following:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...timefile...]
sourcetype = timefile
REPORT-time = time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[time]
DELIMS = "\^"
FIELDS = DateAssign,TimeAssign,DateResolv,TimeResolv,CallID,Assignee,Resolution,TotalAsgnmntTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and now it is working fine creating the fields. &lt;/P&gt;

&lt;P&gt;If this helps don't forget to give me some points. &lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2011 17:53:44 GMT</pubDate>
    <dc:creator>tgow</dc:creator>
    <dc:date>2011-11-09T17:53:44Z</dc:date>
    <item>
      <title>Defining fields in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107282#M22555</link>
      <description>&lt;P&gt;Splunk Version 4.0.11&lt;/P&gt;

&lt;P&gt;I’m working on getting Splunk to consume “log” files that I have dumped from a SQL Server helpdesk database. There are a lot of date and time fields in the events as well as dates and times that are included in the free-form text fields. I have managed to extract fields for my journal logs. My assignment log looks like this&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
2011-10-03^09:15:37^ ^ ^00021361^Brandon^ ^ ^&lt;BR /&gt;
2011-10-03^08:10:35^2011-10-03^14:51:43^00021584^Bonnie^Completed^15^&lt;BR /&gt;
2011-10-03^08:25:28^2011-10-04^07:17:13^00021585^Bonnie^Completed^20^&lt;BR /&gt;
2011-10-03^08:40:19^2011-10-05^13:40:38^00021587^Bonnie^Completed^30^&lt;BR /&gt;
2011-10-03^08:59:21^2011-10-04^07:15:03^00021588^Bonnie^Completed^20^&lt;BR /&gt;
2011-10-03^09:14:46^2011-10-03^14:05:20^00021589^Patrick^Completed^15^&lt;BR /&gt;
2011-10-03^09:24:33^2011-10-04^07:02:54^00021591^Stephanie^Completed^10^&lt;BR /&gt;
2011-10-03^10:21:26^2011-10-03^14:25:04^00021592^Jeff^Completed^15^&lt;BR /&gt;
2011-10-03^10:42:09^2011-10-03^10:42:25^00021593^Robert^Completed^10^&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;transforms.conf looks like this&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
[AsgLog] &lt;BR /&gt;
DELIMS="^" &lt;BR /&gt;
FIELDS="DateAssign",TimeAssign","DateResolv","TimeResolv","CallID","Assignee","Resolution","TotalAsgnmntTime" &lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Splunk consumes the data and I can search it but the fields defined in transforms.conf are not available. I’ve tried extracting the fields but with two date fields and two time fields Splunk doesn’t seem able to discriminate between them.&lt;BR /&gt;
What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 16:07:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107282#M22555</guid>
      <dc:creator>kmattern</dc:creator>
      <dc:date>2011-11-09T16:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Defining fields in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107283#M22556</link>
      <description>&lt;P&gt;Have you tried it with the FIELDS not surrounded by " "'s. E.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELDS=DateAssign,TimeAssign,DateResolv,TimeResolv,CallID,Assignee,Resolution,TotalAsgnmntTime 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, have you restarted Splunk? this is required to ensure that the configs are reloaded successfully.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 16:55:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107283#M22556</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2011-11-09T16:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Defining fields in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107284#M22557</link>
      <description>&lt;P&gt;Yep! Been there and done that. I always remember to stop and restart Splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 17:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107284#M22557</guid>
      <dc:creator>kmattern</dc:creator>
      <dc:date>2011-11-09T17:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Defining fields in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107285#M22558</link>
      <description>&lt;P&gt;You will have to backslash out the "^" because it is an anchor in REGEX. &lt;/P&gt;

&lt;P&gt;I took your log snippet and used the following:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...timefile...]
sourcetype = timefile
REPORT-time = time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[time]
DELIMS = "\^"
FIELDS = DateAssign,TimeAssign,DateResolv,TimeResolv,CallID,Assignee,Resolution,TotalAsgnmntTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and now it is working fine creating the fields. &lt;/P&gt;

&lt;P&gt;If this helps don't forget to give me some points. &lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 17:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107285#M22558</guid>
      <dc:creator>tgow</dc:creator>
      <dc:date>2011-11-09T17:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Defining fields in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107286#M22559</link>
      <description>&lt;P&gt;Here's a quick tip.  You don't have to restart Splunk for changes to the .conf files, you can use the extract command with the reload=true option as documented in the Search command cheat sheet:  &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/SearchCheatsheet"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/SearchCheatsheet&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Extract field/value pairs and reload field extraction settings from disk.&lt;BR /&gt;
... | extract reload=true&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 18:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107286#M22559</guid>
      <dc:creator>Jon_Webster</dc:creator>
      <dc:date>2011-11-09T18:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Defining fields in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107287#M22560</link>
      <description>&lt;P&gt;Good shout!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 09:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107287#M22560</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2011-11-10T09:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Defining fields in transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107288#M22561</link>
      <description>&lt;P&gt;This isn't generally recommended. Although documented it doesn't actually always work very effectively. I have wasted many an hour thinking my configs were at fault when in fact they were fine but Splunk wasn't reloading them! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Best practice would be to restart the system to be sure&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 09:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Defining-fields-in-transforms-conf/m-p/107288#M22561</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2011-11-10T09:06:56Z</dc:date>
    </item>
  </channel>
</rss>

