<?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: Field Extract and Format Time Stamp in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316931#M162655</link>
    <description>&lt;P&gt;If you have multiple events using the same line, then you should use the props that should look something like this:&lt;BR /&gt;
props.conf:&lt;BR /&gt;
[sourcetype]&lt;BR /&gt;
TIME_PREFIX = depends on the timestamp you want&lt;BR /&gt;
TIME_FORMAT = not sure what time you want to use - initial or final&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = ?&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
LINE_BREAKER = |\d{2}(\s)\d+&lt;BR /&gt;
TRUNCATE = 50000&lt;BR /&gt;
REPORT-extraction = your_extraction&lt;/P&gt;

&lt;P&gt;transfoms.conf:&lt;BR /&gt;
[your_extraction]&lt;BR /&gt;
DELIMS = "|"&lt;BR /&gt;
FIELDS = emp, user, session_id, datei_mday, datei_month, datei_year, datei_hour, datei_minute, datef_mday, datef_month, datef_year, datef_hour, datef_minute&lt;/P&gt;

&lt;P&gt;Hope it works!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:13:54 GMT</pubDate>
    <dc:creator>danielasilva</dc:creator>
    <dc:date>2020-09-29T18:13:54Z</dc:date>
    <item>
      <title>Field Extract and Format Time Stamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316929#M162653</link>
      <description>&lt;P&gt;Hi All.&lt;/P&gt;

&lt;P&gt;How to break this log block so that it reads each row as an event, and this log is not in timestamp format?&lt;/P&gt;

&lt;P&gt;The date would be the start and end of the user session on the system.&lt;/P&gt;

&lt;P&gt;The following is an example of the log:&lt;BR /&gt;
cod|user   |system     |day|month|year|hour|minute|day|month|year|hour|minute &lt;BR /&gt;
&lt;STRONG&gt;001|00129810|cis2121000 |01|03|18|10|46|01|03|18|10|46&lt;/STRONG&gt; 001|user001 |cis2200000 |01|03|18|10|46|01|03|18|10|46 001|00129810|cis2121000 |01|03|18|10|46|01|03|18|10|46 001|user001 |cisli2100m000 |01|03|18|10|46|01|03|18|10|46 001|user001 |cisli2100m000 |01|03|18|10|46|01|03|18|10|46 001|00129810|cis2121000 |01|03|18|10|46|01|03|18|10|46 001|00129810|cisli2100m000 |01|03|18|10|46|01|03|18|10|46 001|00821888|cis0121000 |01|03|18|10|46|01|03|18|10|46 001|user001 |cis2200000 |01|03|18|10|46|01|03|18|10|46 &lt;/P&gt;

&lt;P&gt;Do I have to configure in props.conf and transform.conf by sourcetype?&lt;BR /&gt;
REGEX = = (.{3}).(.{8}).(.{16}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2}).(.{2})&lt;BR /&gt;
FORMAT = emp::$1 user::$2 session_id::$3 datei_mday::$4 datei_month::$5 datei_year::$6 datei_hour::$7 datei_minute::$8 datef_mday::$9 datef_month::$10 datef_year::$11 datef_hour::$12 datef_minute::$13&lt;/P&gt;

&lt;P&gt;I tried to create this REGEX, but it did not work.&lt;/P&gt;

&lt;P&gt;Can you help me please?&lt;/P&gt;

&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316929#M162653</guid>
      <dc:creator>jfeitosa</dc:creator>
      <dc:date>2020-09-29T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extract and Format Time Stamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316930#M162654</link>
      <description>&lt;P&gt;set below in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it will separate each line as an event&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = [true|false]
* When set to true, Splunk combines several lines of data into a single
  multi-line event, based on the following configuration attributes.
* Defaults to true.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:48:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316930#M162654</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-03-01T15:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extract and Format Time Stamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316931#M162655</link>
      <description>&lt;P&gt;If you have multiple events using the same line, then you should use the props that should look something like this:&lt;BR /&gt;
props.conf:&lt;BR /&gt;
[sourcetype]&lt;BR /&gt;
TIME_PREFIX = depends on the timestamp you want&lt;BR /&gt;
TIME_FORMAT = not sure what time you want to use - initial or final&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = ?&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
LINE_BREAKER = |\d{2}(\s)\d+&lt;BR /&gt;
TRUNCATE = 50000&lt;BR /&gt;
REPORT-extraction = your_extraction&lt;/P&gt;

&lt;P&gt;transfoms.conf:&lt;BR /&gt;
[your_extraction]&lt;BR /&gt;
DELIMS = "|"&lt;BR /&gt;
FIELDS = emp, user, session_id, datei_mday, datei_month, datei_year, datei_hour, datei_minute, datef_mday, datef_month, datef_year, datef_hour, datef_minute&lt;/P&gt;

&lt;P&gt;Hope it works!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:13:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316931#M162655</guid>
      <dc:creator>danielasilva</dc:creator>
      <dc:date>2020-09-29T18:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extract and Format Time Stamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316932#M162656</link>
      <description>&lt;P&gt;Thanks for the answer. I'll test and return with the result.&lt;BR /&gt;
Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 21:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316932#M162656</guid>
      <dc:creator>jfeitosa</dc:creator>
      <dc:date>2018-03-01T21:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extract and Format Time Stamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316933#M162657</link>
      <description>&lt;P&gt;Thanks for the answer. I'll test and return with the result.&lt;BR /&gt;
Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 21:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extract-and-Format-Time-Stamp/m-p/316933#M162657</guid>
      <dc:creator>jfeitosa</dc:creator>
      <dc:date>2018-03-01T21:18:12Z</dc:date>
    </item>
  </channel>
</rss>

