<?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: After Cloning a sourcetype using TRANSFORMS-CLONE i cant get timestamp to be read on the new sourctype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/After-Cloning-a-sourcetype-using-TRANSFORMS-CLONE-i-cant-get/m-p/475498#M99738</link>
    <description>&lt;P&gt;Your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; is wrong, for one thing; it should be this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
category = Custom
disabled = false
TIME_PREFIX = ^\[
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%z
MAX_TIMESTAMP_LOOKAHEAD = 28
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But that's not your real problem.  If it truly isn't work than EITHER you don't have newlines where you think that you do OR you have deployed it wrong.  If you are doing a sourcetype override/overwrite, you must use the &lt;EM&gt;ORIGINAL&lt;/EM&gt; value, &lt;EM&gt;NOT&lt;/EM&gt; the new value.  You must deploy your settings to the first full instance(s) of Splunk that handle the events (usually either the HF tier if you use one, or else your Indexer tier) UNLESS you are using HEC's JSON endpoint (it gets pre-cooked) or INDEXED_EXTRACTIONS (configs go on the UF in that case), then restart all Splunk instances there.  When (re)evaluating, you must send in new events (old events will stay broken), then test using &lt;CODE&gt;_index_earliest=-5m&lt;/CODE&gt; to be absolutely certain that you are only examining the newly indexed events.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:16:40 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2020-09-30T04:16:40Z</dc:date>
    <item>
      <title>After Cloning a sourcetype using TRANSFORMS-CLONE i cant get timestamp to be read on the new sourctype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-Cloning-a-sourcetype-using-TRANSFORMS-CLONE-i-cant-get/m-p/475497#M99737</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am cloning a sourcetype twice. (Using TRANSFORMS-CLONE = CLONE_SOURCETYPE_JAVA,CLONE_SOURCETYPE_JAVA1)&lt;BR /&gt;
Then in the transforms i define it &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[CLONE_SOURCETYPE_JAVA1]
CLONE_SOURCETYPE = sun_jvm
REGEX = .

[CLONE_SOURCETYPE_JAVA]
CLONE_SOURCETYPE = GC11
REGEX = .
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sun_jvm works but GC11  does not (it takes in all lines as one event), i have reduced it down to the timestamp that i think it causing the issue.&lt;/P&gt;

&lt;P&gt;It looks that a small difference in the timestamp brackets [ ] is causing the issue for Slunk not to pick up the GC11 correctly, &lt;/P&gt;

&lt;P&gt;Working one(sun_jvm)&lt;BR /&gt;
2020-02-17T20:06:26.345+0100: 0.567: GC 9216K-&amp;gt;4524K(32256K), 0.0132560 secs:&lt;BR /&gt;
2020-02-17T20:06:26.345+0100: 0.567: GC 9216K-&amp;gt;4524K(32256K), 0.0132560 secs:&lt;BR /&gt;
2020-02-17T20:06:26.345+0100: 0.567: GC 9216K-&amp;gt;4524K(32256K), 0.0132560 secs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sun_jvm]
MAX_TIMESTAMP_LOOKAHEAD = 30
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N
TIME_PREFIX = ^
SHOULD_LINEMERGE = false
category = Custom
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Non working(GC11)&lt;BR /&gt;
[2020-01-31T21:15:58.195+0100] GC(8) Pause Full (System.gc()) 82M-&amp;gt;11M(1024M) 11.992ms&lt;BR /&gt;
[2020-01-31T22:15:58.204+0100] GC(9) Pause Full (System.gc()) 81M-&amp;gt;11M(1024M) 9.231ms&lt;BR /&gt;
[2020-01-31T23:15:58.215+0100] GC(10) Pause Full (System.gc()) 81M-&amp;gt;11M(1024M) 10.501ms&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  [GC11]
DATETIME_CONFIG = 
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
category = Custom
disabled = false
pulldown_type = true
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N+0100]
TIME_PREFIX = ^\[
MAX_TIMESTAMP_LOOKAHEAD = 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If i send the data directly into GC11 it works, but if i send it as a clone it picks up the data as one big event and does not break it down into multiple lines. &lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/283698-2020-02-23-13-46-19-search-splunk-800.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Other information might be i take it in and clone it with this, however with the sun_jvm i am able to break it down into multiple lines, but not the for GC11. Any help would be great thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[G1]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%z
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 28
DATETIME_CONFIG = 
NO_BINARY_CHECK = true
category = Custom
pulldown_type = 1
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-Cloning-a-sourcetype-using-TRANSFORMS-CLONE-i-cant-get/m-p/475497#M99737</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2020-09-30T04:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: After Cloning a sourcetype using TRANSFORMS-CLONE i cant get timestamp to be read on the new sourctype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-Cloning-a-sourcetype-using-TRANSFORMS-CLONE-i-cant-get/m-p/475498#M99738</link>
      <description>&lt;P&gt;Your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; is wrong, for one thing; it should be this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
category = Custom
disabled = false
TIME_PREFIX = ^\[
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%z
MAX_TIMESTAMP_LOOKAHEAD = 28
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But that's not your real problem.  If it truly isn't work than EITHER you don't have newlines where you think that you do OR you have deployed it wrong.  If you are doing a sourcetype override/overwrite, you must use the &lt;EM&gt;ORIGINAL&lt;/EM&gt; value, &lt;EM&gt;NOT&lt;/EM&gt; the new value.  You must deploy your settings to the first full instance(s) of Splunk that handle the events (usually either the HF tier if you use one, or else your Indexer tier) UNLESS you are using HEC's JSON endpoint (it gets pre-cooked) or INDEXED_EXTRACTIONS (configs go on the UF in that case), then restart all Splunk instances there.  When (re)evaluating, you must send in new events (old events will stay broken), then test using &lt;CODE&gt;_index_earliest=-5m&lt;/CODE&gt; to be absolutely certain that you are only examining the newly indexed events.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-Cloning-a-sourcetype-using-TRANSFORMS-CLONE-i-cant-get/m-p/475498#M99738</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-09-30T04:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: After Cloning a sourcetype using TRANSFORMS-CLONE i cant get timestamp to be read on the new sourctype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-Cloning-a-sourcetype-using-TRANSFORMS-CLONE-i-cant-get/m-p/475499#M99739</link>
      <description>&lt;P&gt;Thanks for the replay (as always :)).&lt;/P&gt;

&lt;P&gt;So i updated the time but still not luck.&lt;/P&gt;

&lt;P&gt;I am sending the data in form a forwarder to one splunk install (There are no other installs in play here).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///net/hp737srv/hp737srv1/apps/TEST/JAVA_11_TEST_FILES/ALL_3_JAVA_FILES.../*]
disabled = true
host = JAVA_11_TEST56
index = mlc_live
whitelist = .*.gc.*.log$|gc_.*\.log$|GC_.*\.log$
sourcetype = G1
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If i take one file and send it directly to GC11 it works. I just check there and it does have CRLF at the end of each line.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[GC11]
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
category = Custom
disabled = false
TIME_PREFIX = ^\[
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%z
MAX_TIMESTAMP_LOOKAHEAD = 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not working (When i use TRANSFORMS-CLONE, but ok directly into GC11 sourcetype)&lt;BR /&gt;
    [2020-01-31T15:15:54.526+0100] Using G1&lt;BR /&gt;
    [2020-01-31T15:15:56.029+0100] GC(0) Pause Young (Normal) (G1 Evacuation Pause) 62M-&amp;gt;4M(1024M) 8.384ms&lt;BR /&gt;
    [2020-01-31T15:15:58.104+0100] GC(1) Pause Young (Concurrent Start) (Metadata GC Threshold) 283M-&amp;gt;12M(1024M) 17.161ms&lt;BR /&gt;
    [2020-01-31T15:15:58.104+0100] GC(2) Concurrent Cycle&lt;BR /&gt;
    [2020-01-31T15:15:58.109+0100] GC(2) Pause Remark 12M-&amp;gt;12M(1024M) 1.751ms&lt;BR /&gt;
    [2020-01-31T15:15:58.109+0100] GC(2) Pause Cleanup 12M-&amp;gt;12M(1024M) 0.156ms&lt;/P&gt;

&lt;P&gt;As a test , i took the data and i removed the [] to see if it would work and it did.&lt;BR /&gt;
working direct from forwarder and using TRANSFORMS-CLONE&lt;BR /&gt;
    2020-01-31T15:15:54.526+0100 Using G1&lt;BR /&gt;
    2020-01-31T15:15:56.029+0100 GC(0) Pause Young (Normal) (G1 Evacuation Pause) 62M-&amp;gt;4M(1024M) 8.384ms&lt;BR /&gt;
    2020-01-31T15:15:58.104+0100 GC(1) Pause Young (Concurrent Start) (Metadata GC Threshold) 283M-&amp;gt;12M(1024M) 17.161ms&lt;BR /&gt;
    2020-01-31T15:15:58.104+0100 GC(2) Concurrent Cycle&lt;BR /&gt;
    2020-01-31T15:15:58.109+0100 GC(2) Pause Remark 12M-&amp;gt;12M(1024M) 1.751ms&lt;BR /&gt;
    2020-01-31T15:15:58.109+0100 GC(2) Pause Cleanup 12M-&amp;gt;12M(1024M) 0.156ms&lt;/P&gt;

&lt;P&gt;I am unsure what you meant by "you must use the ORIGINAL value, NOT the new value" is the ORGINAL the _raw data not the data after the first sourcetype might change it?&lt;/P&gt;

&lt;P&gt;The first sourcetype is below, i take the file in blocks as i need to. The idea is take it in G1 and then sun_jvm and GC11 both need single line.&lt;BR /&gt;
As i have said sun_jvm works just fine, the timestamp is the same but with no [].&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[G1]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%z
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 28
DATETIME_CONFIG = 
NO_BINARY_CHECK = true
category = Custom
pulldown_type = 1
disabled = false
TRANSFORMS-CLONE = CLONE_SOURCETYPE_JAVA,CLONE_SOURCETYPE_JAVA1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As always any help would be great as i am starting to think there might be a bug in Splunk (i hope not!)&lt;/P&gt;

&lt;P&gt;Cheers&lt;BR /&gt;
Robbie&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-Cloning-a-sourcetype-using-TRANSFORMS-CLONE-i-cant-get/m-p/475499#M99739</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2020-09-30T04:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: After Cloning a sourcetype using TRANSFORMS-CLONE i cant get timestamp to be read on the new sourctype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-Cloning-a-sourcetype-using-TRANSFORMS-CLONE-i-cant-get/m-p/524158#M99740</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask similar question , what do you mean by "&lt;SPAN&gt;I&lt;STRONG&gt;f you are doing a sourcetype override/overwrite, you must use the&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;ORIGINAL&lt;/EM&gt;&amp;nbsp;value,&amp;nbsp;&lt;EM&gt;NOT&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;the new value&lt;/STRONG&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I encounter the similar issue and still no solution found.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If i try my time recognition ( e.g: TIME_PREFIX, TIME_FORMAT ) parameters on the ORIGINAL sourcetype it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But if i try it to the CLONED one - its&amp;nbsp; not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And how can i apply it properly on the CLONED sourcetype, cause the ORIGINAL sourcetype has other logs to distribute ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 05:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-Cloning-a-sourcetype-using-TRANSFORMS-CLONE-i-cant-get/m-p/524158#M99740</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-10-12T05:51:12Z</dc:date>
    </item>
  </channel>
</rss>

