<?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 bacula events again in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30378#M5294</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
i've read and tried &lt;A href="http://splunk-base.splunk.com/answers/12567/training-splunk-to-recognize-events-from-bacula" target="_blank"&gt;this&lt;/A&gt; but somehow it does not work for me.&lt;/P&gt;

&lt;P&gt;i've put the recommended settings into:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNKHOME$/etc/system/local/props.conf&lt;/CODE&gt;&lt;BR /&gt;
and also tried&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNKHOME$/etc/apps/search/local/props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;but it never really works.&lt;BR /&gt;
Some events start in the middle of the indented block(eg at &lt;CODE&gt;Start Time&lt;/CODE&gt;)&lt;BR /&gt;
some start at the Date, but i never got the whole idendet Block into one event.&lt;BR /&gt;
Here's an example of the data:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
17-Jun 10:05 backup1.ber2-dir JobId 1948: Start Backup JobId 1948, Job=test.2011-06-17_10.05.00_40&lt;BR /&gt;
17-Jun 10:05 backup1.ber2-dir JobId 1948: Using Device "FileStorage_test"&lt;BR /&gt;
17-Jun 10:05 backup1.ber2-sd JobId 1948: Volume "test_new02" previously written, moving to end of data.&lt;BR /&gt;
17-Jun 10:05 backup1.ber2-sd JobId 1948: Ready to append to end of Volume "test_new02" size=31846981494&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-sd JobId 1948: Job write elapsed time = 00:05:29, Transfer rate = 6.540 M Bytes/second&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: Bacula backup1.ber2-dir 5.0.3 (04Aug10): 17-Jun-2011 10:10:39&lt;BR /&gt;
  Build OS:               x86_64-unknown-linux-gnu debian 5.0.6&lt;BR /&gt;
  JobId:                  1948&lt;BR /&gt;
  Job:                    test.2011-06-17_10.05.00_40&lt;BR /&gt;
  Backup Level:           Incremental, since=2011-06-17 06:05:03&lt;BR /&gt;
  Client:                 "server11227.example.com-fd" 5.0.2 (28Apr10) x86_64-unknown-linux-gnu,redhat,Enterprise release&lt;BR /&gt;
  FileSet:                "test Set" 2011-01-16 11:29:38&lt;BR /&gt;
  Pool:                   "File_test" (From Job resource)&lt;BR /&gt;
  Catalog:                "MyCatalog" (From Client resource)&lt;BR /&gt;
  Storage:                "File_test" (From Job resource)&lt;BR /&gt;
  Scheduled time:         17-Jun-2011 10:05:00&lt;BR /&gt;
  Start time:             17-Jun-2011 10:05:03&lt;BR /&gt;
  End time:               17-Jun-2011 10:10:39&lt;BR /&gt;
  Elapsed time:           5 mins 36 secs&lt;BR /&gt;
  Priority:               10&lt;BR /&gt;
  FD Files Written:       5&lt;BR /&gt;
  SD Files Written:       5&lt;BR /&gt;
  FD Bytes Written:       2,151,817,284 (2.151 GB)&lt;BR /&gt;
  SD Bytes Written:       2,151,817,820 (2.151 GB)&lt;BR /&gt;
  Rate:                   6404.2 KB/s&lt;BR /&gt;
  Software Compression:   None&lt;BR /&gt;
  VSS:                    no&lt;BR /&gt;
  Encryption:             no&lt;BR /&gt;
  Accurate:               no&lt;BR /&gt;
  Volume name(s):         test_new02&lt;BR /&gt;
  Volume Session Id:      32&lt;BR /&gt;
  Volume Session Time:    1308035975&lt;BR /&gt;
  Last Volume Bytes:      34,000,395,480 (34.00 GB)&lt;BR /&gt;
  Non-fatal FD errors:    0&lt;BR /&gt;
  SD Errors:              0&lt;BR /&gt;
  FD termination status:  OK&lt;BR /&gt;
  SD termination status:  OK&lt;BR /&gt;
  Termination:            Backup OK&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;17-Jun 10:10 backup1.ber2-dir JobId 1948: Begin pruning Jobs older than 6 months .&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: No Jobs found to prune.&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: Begin pruning Jobs.&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: No Files found to prune.&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: End auto prune.&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;Any help would be appreciated&lt;/P&gt;

&lt;P&gt;Edit: Ah well i forgot:&lt;/P&gt;

&lt;P&gt;Excerp from my props.conf:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
[bacula]&lt;BR /&gt;
BREAK_ONLY_BEFORE=^\d{2}-[A-Za-z]{3}\s+\d{2}:\d{2}\s+&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TIME_FORMAT=%d-%b %H:%M&lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=13&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:41:11 GMT</pubDate>
    <dc:creator>sergemueller</dc:creator>
    <dc:date>2020-09-28T09:41:11Z</dc:date>
    <item>
      <title>bacula events again</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30378#M5294</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
i've read and tried &lt;A href="http://splunk-base.splunk.com/answers/12567/training-splunk-to-recognize-events-from-bacula" target="_blank"&gt;this&lt;/A&gt; but somehow it does not work for me.&lt;/P&gt;

&lt;P&gt;i've put the recommended settings into:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNKHOME$/etc/system/local/props.conf&lt;/CODE&gt;&lt;BR /&gt;
and also tried&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNKHOME$/etc/apps/search/local/props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;but it never really works.&lt;BR /&gt;
Some events start in the middle of the indented block(eg at &lt;CODE&gt;Start Time&lt;/CODE&gt;)&lt;BR /&gt;
some start at the Date, but i never got the whole idendet Block into one event.&lt;BR /&gt;
Here's an example of the data:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
17-Jun 10:05 backup1.ber2-dir JobId 1948: Start Backup JobId 1948, Job=test.2011-06-17_10.05.00_40&lt;BR /&gt;
17-Jun 10:05 backup1.ber2-dir JobId 1948: Using Device "FileStorage_test"&lt;BR /&gt;
17-Jun 10:05 backup1.ber2-sd JobId 1948: Volume "test_new02" previously written, moving to end of data.&lt;BR /&gt;
17-Jun 10:05 backup1.ber2-sd JobId 1948: Ready to append to end of Volume "test_new02" size=31846981494&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-sd JobId 1948: Job write elapsed time = 00:05:29, Transfer rate = 6.540 M Bytes/second&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: Bacula backup1.ber2-dir 5.0.3 (04Aug10): 17-Jun-2011 10:10:39&lt;BR /&gt;
  Build OS:               x86_64-unknown-linux-gnu debian 5.0.6&lt;BR /&gt;
  JobId:                  1948&lt;BR /&gt;
  Job:                    test.2011-06-17_10.05.00_40&lt;BR /&gt;
  Backup Level:           Incremental, since=2011-06-17 06:05:03&lt;BR /&gt;
  Client:                 "server11227.example.com-fd" 5.0.2 (28Apr10) x86_64-unknown-linux-gnu,redhat,Enterprise release&lt;BR /&gt;
  FileSet:                "test Set" 2011-01-16 11:29:38&lt;BR /&gt;
  Pool:                   "File_test" (From Job resource)&lt;BR /&gt;
  Catalog:                "MyCatalog" (From Client resource)&lt;BR /&gt;
  Storage:                "File_test" (From Job resource)&lt;BR /&gt;
  Scheduled time:         17-Jun-2011 10:05:00&lt;BR /&gt;
  Start time:             17-Jun-2011 10:05:03&lt;BR /&gt;
  End time:               17-Jun-2011 10:10:39&lt;BR /&gt;
  Elapsed time:           5 mins 36 secs&lt;BR /&gt;
  Priority:               10&lt;BR /&gt;
  FD Files Written:       5&lt;BR /&gt;
  SD Files Written:       5&lt;BR /&gt;
  FD Bytes Written:       2,151,817,284 (2.151 GB)&lt;BR /&gt;
  SD Bytes Written:       2,151,817,820 (2.151 GB)&lt;BR /&gt;
  Rate:                   6404.2 KB/s&lt;BR /&gt;
  Software Compression:   None&lt;BR /&gt;
  VSS:                    no&lt;BR /&gt;
  Encryption:             no&lt;BR /&gt;
  Accurate:               no&lt;BR /&gt;
  Volume name(s):         test_new02&lt;BR /&gt;
  Volume Session Id:      32&lt;BR /&gt;
  Volume Session Time:    1308035975&lt;BR /&gt;
  Last Volume Bytes:      34,000,395,480 (34.00 GB)&lt;BR /&gt;
  Non-fatal FD errors:    0&lt;BR /&gt;
  SD Errors:              0&lt;BR /&gt;
  FD termination status:  OK&lt;BR /&gt;
  SD termination status:  OK&lt;BR /&gt;
  Termination:            Backup OK&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;17-Jun 10:10 backup1.ber2-dir JobId 1948: Begin pruning Jobs older than 6 months .&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: No Jobs found to prune.&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: Begin pruning Jobs.&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: No Files found to prune.&lt;BR /&gt;
17-Jun 10:10 backup1.ber2-dir JobId 1948: End auto prune.&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;Any help would be appreciated&lt;/P&gt;

&lt;P&gt;Edit: Ah well i forgot:&lt;/P&gt;

&lt;P&gt;Excerp from my props.conf:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
[bacula]&lt;BR /&gt;
BREAK_ONLY_BEFORE=^\d{2}-[A-Za-z]{3}\s+\d{2}:\d{2}\s+&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TIME_FORMAT=%d-%b %H:%M&lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=13&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30378#M5294</guid>
      <dc:creator>sergemueller</dc:creator>
      <dc:date>2020-09-28T09:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: bacula events again</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30379#M5295</link>
      <description>&lt;P&gt;You could try specifying a line breaker instead of using line merging:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[bacula]
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?!\s+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should break events by vertical whitespace not followed by whitespace characters.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2011 17:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30379#M5295</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2011-06-17T17:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: bacula events again</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30380#M5296</link>
      <description>&lt;P&gt;doesn really work,&lt;/P&gt;

&lt;P&gt;now it breaks between "end time:" and volume session id&lt;/P&gt;

&lt;P&gt;i dont really getit&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2011 07:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30380#M5296</guid>
      <dc:creator>sergemueller</dc:creator>
      <dc:date>2011-06-20T07:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: bacula events again</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30381#M5297</link>
      <description>&lt;P&gt;it also appears, that the TIME_PREFIX is not recognized, since it evaluates times in the middel of the line (The One after " Start Time:"), but the sourcetype is recognized (i tested it with an extraction)&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2011 09:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30381#M5297</guid>
      <dc:creator>sergemueller</dc:creator>
      <dc:date>2011-06-20T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: bacula events again</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30382#M5298</link>
      <description>&lt;P&gt;You might want to double-check the first line of your bacula log file and make sure that it doesn't have a regular syslog style timestamp.  If it does, this may be throwing off proper detection of the timestamp event for your bacula sourcetype on initial import.  I had to delete the first line in my bacula log file and then re-index the data in order to correct the problem.&lt;/P&gt;

&lt;P&gt;Also, at the risk of someone telling me that I'm doing my field extractions all wrong (I'm still learning), here is my bacula_logs sourcetype entry in props.conf in case it's helpful to anyone.  So far it seems to be working well.  If anyone has a suggestion for how I might improve upon it though, I'm open to ideas.  &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[bacula_logs]
LEARN_MODEL=true
TIME_FORMAT = %d-%b %H:%M
EXTRACT-jobstatus = Termination:\s+\W*(?&amp;lt;jobstatus&amp;gt;(Backup OK|Backup Error|Backup Canceled))
EXTRACT-backupclient-1 = Client: \s*\W*(?&amp;lt;backupclient&amp;gt;[a-z0-9\-A-Z]*)
EXTRACT-backupclient-2 = gethostbyname\(\) for host "(?&amp;lt;backupclient&amp;gt;[a-z\.0-9\-A-Z]*)"
EXTRACT-backuplevel = Backup Level: \s*(?&amp;lt;backuplevel&amp;gt;\w*)
EXTRACT-compression = Software Compression: \s*(?&amp;lt;compression&amp;gt;\S+\s*%)
EXTRACT-sourcehost = \d+-\w\w\w \d+:\d+ \s*(?&amp;lt;sourcehost&amp;gt;\S*)
EXTRACT-jobid = JobId [:]*(?&amp;lt;jobid&amp;gt;\d+)
EXTRACT-byteswritten = SD Bytes Written:\s+(?&amp;lt;byteswritten&amp;gt;\S*)
EXTRACT-origination = ^\d\d-\w\w\w \d\d:\d\d (?&amp;lt;origination&amp;gt;\S+)
EXTRACT-fatal-error = Fatal error: (?&amp;lt;fatal_error&amp;gt;.*)
EXTRACT-fd-status = FD termination status:  (?&amp;lt;fd_status&amp;gt;.*?(?=SD term))
EXTRACT-sd-status = SD termination status:  (?&amp;lt;sd_status&amp;gt;.*?(?=Termination:))
EXTRACT-jobname = \s+Job: \s+(?&amp;lt;jobname&amp;gt;\S+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2011 00:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30382#M5298</guid>
      <dc:creator>aquilino1</dc:creator>
      <dc:date>2011-11-15T00:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: bacula events again</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30383#M5299</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;did this message board filter out your backslashes or does your props.conf regex actually look like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[bacula]
BREAK_ONLY_BEFORE=^d{2}-[A-Za-z]{3}s+d{2}:d{2}s+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Other than that, I think you should be able to break at the correct places with (just being a little more specific on the numbers used for matching date/time);&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[bacula]
LINE_BREAKER=([\r\n]+)[0-3][0-9]-[A-Za-z]{3}\s+[0-2][0-9]:[0-5][0-9]\s+
SHOULD_LINEMERGE = False
TIME_FORMAT=%d-%b %H:%M
TIME_PREFIX=^
MAX_TIMESTAMP_LOOKAHEAD=13
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2011 09:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/bacula-events-again/m-p/30383#M5299</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2011-11-15T09:28:54Z</dc:date>
    </item>
  </channel>
</rss>

