<?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: Time field extraction and transformation in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Time-field-extraction-and-transformation/m-p/165270#M33523</link>
    <description>&lt;P&gt;Yes. You can do EVAL statements in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-mytime = strftime(_time,"%Y-%m-%dT%H:%M:%S%z")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2013 07:49:57 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-12-04T07:49:57Z</dc:date>
    <item>
      <title>Time field extraction and transformation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-field-extraction-and-transformation/m-p/165269#M33522</link>
      <description>&lt;P&gt;Big Picture: I need to extract a time stamp from my data and pass it in a specific format in a URI GET request to a third party appliance. My issue arises with the format Splunk uses for _time. &lt;/P&gt;

&lt;P&gt;Splunk: _time = 2013-12-03T00:46:32.000-05:00&lt;BR /&gt;
I need: mytime= 2013-11-26T23:59:59-0500&lt;BR /&gt;
Year-Month-DayT24Hour:Minute:Second-UTCoffset&lt;/P&gt;

&lt;P&gt;I came up with a work around macro to get around the extraction and transformation issue. The macro I used is eval mytime=strftime(_time,"%Y-%m-%dT%H:%M:%S%z"). Downside to using a macro is that it needs to be called at search time by the user. I'd like to use something transparent. I am asking the Splunk community for help. Can this extractions/transformation be done invisibly behind to scenes? Could I use transforms.conf and props.conf?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 06:14:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-field-extraction-and-transformation/m-p/165269#M33522</guid>
      <dc:creator>rgaleone1</dc:creator>
      <dc:date>2013-12-04T06:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Time field extraction and transformation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-field-extraction-and-transformation/m-p/165270#M33523</link>
      <description>&lt;P&gt;Yes. You can do EVAL statements in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-mytime = strftime(_time,"%Y-%m-%dT%H:%M:%S%z")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 07:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-field-extraction-and-transformation/m-p/165270#M33523</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-12-04T07:49:57Z</dc:date>
    </item>
  </channel>
</rss>

