<?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 Need a help on Line Breaking and Time Prefix, Time_Format on props.conf ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412610#M73033</link>
    <description>&lt;P&gt;Hi All,  Need a help on Line Break Regex and TIME_FORMAT on props.conf, I am ingesting sonarqube logs in to splunk for the below log details with the following source type, but got stuck with the Regex part.&lt;/P&gt;

&lt;P&gt;Ce.log details:&lt;BR /&gt;
2019.07.12 11:05:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:05:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;BR /&gt;
2019.07.12 11:15:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:15:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;BR /&gt;
2019.07.12 11:25:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:25:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;BR /&gt;
2019.07.12 11:35:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:35:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;BR /&gt;
2019.07.12 11:45:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:45:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;/P&gt;

&lt;P&gt;Source type and stanza details:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[sonarqube:ce]&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)\d+.\d+.\d+\s+\d+:\d+:\d+\s+\w+&lt;BR /&gt;
TIME_FORMAT=%Y.%m.%d %H:%M:%S&lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=19&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;Access.log details:&lt;/P&gt;

&lt;P&gt;x.x.x.x- - [11/Jul/2019:17:54:12 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWbCc71kFTVuzYd0BsSB&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 288 "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACB"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWbCc74DFTVuzYd0BsTO&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACC"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWqYLPh9Yaosnfiy-EtA&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 3989 "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACD"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWkV46fXeS_Bw5qUD5wC&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACE"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWbCc8AHFTVuzYd0BsWp&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACF"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWbCc8LZFTVuzYd0Bsd5&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACG"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWoCWw4hDVsFMZYP1Pzs&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACH"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[sonarqube:access]&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT= %d/%b/%Y:%H:%M:%S %Z&lt;BR /&gt;
TIME_PREFIX= \d+.\d+.\d+.\d+\s+-\s+-\s+[&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=26 &lt;BR /&gt;
LINE_BREAKER =([\r\n]+)\d+.\d+.\d+.\d&lt;/STRONG&gt;  &lt;/P&gt;

&lt;P&gt;Need help on the above stanza's to parse the sonarqube data in splunk. Kindly guide me on this. &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:29:50 GMT</pubDate>
    <dc:creator>Hemnaath</dc:creator>
    <dc:date>2020-09-30T01:29:50Z</dc:date>
    <item>
      <title>Need a help on Line Breaking and Time Prefix, Time_Format on props.conf ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412610#M73033</link>
      <description>&lt;P&gt;Hi All,  Need a help on Line Break Regex and TIME_FORMAT on props.conf, I am ingesting sonarqube logs in to splunk for the below log details with the following source type, but got stuck with the Regex part.&lt;/P&gt;

&lt;P&gt;Ce.log details:&lt;BR /&gt;
2019.07.12 11:05:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:05:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;BR /&gt;
2019.07.12 11:15:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:15:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;BR /&gt;
2019.07.12 11:25:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:25:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;BR /&gt;
2019.07.12 11:35:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:35:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;BR /&gt;
2019.07.12 11:45:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Deleting any worn out task&lt;BR /&gt;
2019.07.12 11:45:15 DEBUG ce[][o.s.c.c.CeCleaningSchedulerImpl] Resetting state of tasks with unknown worker UUIDs&lt;/P&gt;

&lt;P&gt;Source type and stanza details:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[sonarqube:ce]&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)\d+.\d+.\d+\s+\d+:\d+:\d+\s+\w+&lt;BR /&gt;
TIME_FORMAT=%Y.%m.%d %H:%M:%S&lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=19&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;Access.log details:&lt;/P&gt;

&lt;P&gt;x.x.x.x- - [11/Jul/2019:17:54:12 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWbCc71kFTVuzYd0BsSB&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 288 "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACB"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWbCc74DFTVuzYd0BsTO&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACC"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWqYLPh9Yaosnfiy-EtA&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 3989 "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACD"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWkV46fXeS_Bw5qUD5wC&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACE"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWbCc8AHFTVuzYd0BsWp&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACF"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWbCc8LZFTVuzYd0Bsd5&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACG"&lt;BR /&gt;
x.x.x.x- - [11/Jul/2019:17:54:13 +0100] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&amp;amp;activation=true&amp;amp;qprofile=AWoCWw4hDVsFMZYP1Pzs&amp;amp;p=1&amp;amp;ps=500 HTTP/1.1" 200 - "-" "ScannerMaven/X.X.X.XXXX/3.0.5" "XXXXXXs0y7TAACH"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[sonarqube:access]&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT= %d/%b/%Y:%H:%M:%S %Z&lt;BR /&gt;
TIME_PREFIX= \d+.\d+.\d+.\d+\s+-\s+-\s+[&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=26 &lt;BR /&gt;
LINE_BREAKER =([\r\n]+)\d+.\d+.\d+.\d&lt;/STRONG&gt;  &lt;/P&gt;

&lt;P&gt;Need help on the above stanza's to parse the sonarqube data in splunk. Kindly guide me on this. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412610#M73033</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-30T01:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help on Line Breaking and Time Prefix, Time_Format on props.conf ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412611#M73034</link>
      <description>&lt;P&gt;HI Hemnaath,&lt;BR /&gt;
at first you don't need LINE_BREAKER if you have SHOULD_LINEMERGE=false because each row is an event.&lt;/P&gt;

&lt;P&gt;About the first one, TIME_PREFIX and TIME_FORMAT are correct.&lt;/P&gt;

&lt;P&gt;About the second one, I hint to modify TIME_PREFIX adding "^" at the beginning and escaping special chars (e.g. "." and "["), in other words:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=^\d+\.\d+\.\d+\.\d+\s+-\s+-\s+\[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then TIME_FORMAT is correct.&lt;/P&gt;

&lt;P&gt;The best way to check props.conf is to extract some logs in a file and follow the guided procedure for ingestion, in this way you can immediately check your settings.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412611#M73034</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T01:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help on Line Breaking and Time Prefix, Time_Format on props.conf ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412612#M73035</link>
      <description>&lt;P&gt;thanks gcusello, for responding on this. but in our organisation we are following some standard recommendation when you are going to ingest a feed into splunk based on that, it is mandatory to add this stanza's.  in this case my LINE_BREAKER  regex and Max_time_look-ahead are correct. &lt;/P&gt;

&lt;P&gt;[sonarqube:ce]&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)\d+.\d+.\d+\s+\d+:\d+:\d+\s+\w+&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=19&lt;/P&gt;

&lt;P&gt;[sonarqube:access]&lt;BR /&gt;
LINE_BREAKER =([\r\n]+)\d+.\d+.\d+.\d&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=26  &lt;/P&gt;

&lt;P&gt;Please guide me on this. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:29:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412612#M73035</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-30T01:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help on Line Breaking and Time Prefix, Time_Format on props.conf ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412613#M73036</link>
      <description>&lt;P&gt;HI Hemnaath,&lt;BR /&gt;
ok, I don't understand but rules are rules!&lt;BR /&gt;
Anyway, probably the problem are special chars to escape:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sonarqube:ce]
LINE_BREAKER = ^\d+\.\d+\.\d+\s+\d+:\d+:\d+\s+\w+

[sonarqube:access]
TIME_PREFIX = ^\d+\.\d+\.\d+\.\d+\s+-\s+-\s+\[
LINE_BREAKER = ^\d+\.\d+\.\d+\.\d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 13:37:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412613#M73036</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-07-24T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help on Line Breaking and Time Prefix, Time_Format on props.conf ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412614#M73037</link>
      <description>&lt;P&gt;Try this (you had some problems with RegEx):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sonarqube:ce]
SHOULD_LINEMERGE = false
# LINE_BREAKER = default is fine: do not change
TIME_PREFIX = ^
TIME_FORMAT = %Y.%m.%d %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 19

[sonarqube:access]
SHOULD_LINEMERGE = false
# LINE_BREAKER = default is fine: do not change
TIME_PREFIX = ^\d+\.\d+\.\d+\.\d+\s*-\s+-\s+\[
TIME_FORMAT = %d/%b/%Y:%H:%M:%S %Z
MAX_TIMESTAMP_LOOKAHEAD = 26
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 23:06:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-a-help-on-Line-Breaking-and-Time-Prefix-Time-Format-on/m-p/412614#M73037</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-26T23:06:37Z</dc:date>
    </item>
  </channel>
</rss>

