<?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: transforms the source to remove timestamp in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/transforms-the-source-to-remove-timestamp/m-p/56787#M13904</link>
    <description>&lt;P&gt;You may find some of the transformer examples here helpful as well:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/3470/consolidate-similarly-named-log-files-into-a-single-source/4420"&gt;http://splunk-base.splunk.com/answers/3470/consolidate-similarly-named-log-files-into-a-single-source/4420&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2011 17:38:46 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2011-08-02T17:38:46Z</dc:date>
    <item>
      <title>transforms the source to remove timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-the-source-to-remove-timestamp/m-p/56785#M13902</link>
      <description>&lt;P&gt;I want to change the source filename for my data to remove the timestamp.&lt;/P&gt;

&lt;P&gt;from mypath\to\my\folder\userentrypoint17_20110309T143708_170500.log to mypath\to\my\folder\userentrypoint17.log&lt;/P&gt;

&lt;P&gt;the timestamp in the filename is not used, because the complete timestamp is precsent in each event.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2011 06:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-the-source-to-remove-timestamp/m-p/56785#M13902</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2011-03-10T06:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: transforms the source to remove timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-the-source-to-remove-timestamp/m-p/56786#M13903</link>
      <description>&lt;P&gt;Here is the method. &lt;/P&gt;

&lt;P&gt;On the indexer side (or the regular forwarder)&lt;/P&gt;

&lt;PRE&gt;
in /local/props.conf
[sourcetypeofyourdata]
TRANSFORMS-changesource = removetimestamp

in /local/transforms.conf
[removetimetamp]
SOURCE_KEY = MetaData:Source
DEST_KEY = MetaData:Source
REGEX = (.*?)(_\d{8}T\d{6}_\d{6})(\.log)
#use a regex to extract the filename
FORMAT = source::$1$3

to explain here is the regex in action : mypath\userentrypoint17_20110309T143708_170500.log
is cut in 
$1: mypath\userentrypoint17
$2: _20110309T143708_170500
$3: .log 
and we throw away the $2 
&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2011 06:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-the-source-to-remove-timestamp/m-p/56786#M13903</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2011-03-10T06:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: transforms the source to remove timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-the-source-to-remove-timestamp/m-p/56787#M13904</link>
      <description>&lt;P&gt;You may find some of the transformer examples here helpful as well:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/3470/consolidate-similarly-named-log-files-into-a-single-source/4420"&gt;http://splunk-base.splunk.com/answers/3470/consolidate-similarly-named-log-files-into-a-single-source/4420&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2011 17:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-the-source-to-remove-timestamp/m-p/56787#M13904</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-08-02T17:38:46Z</dc:date>
    </item>
  </channel>
</rss>

