Log format definition?

27 views
Skip to first unread message

Spadajspadaj

unread,
Nov 16, 2022, 2:50:59 AM11/16/22
to bareos...@googlegroups.com
Hi

I'm trying to ingest logs from Bareos to Splunk (the actual destination
is not that important here but it's just to put the question in context).

Is there any summary/specification of what and how Bareos logs? Or do I
have to either do a "try and see" approach or dig through the sources
(just core/src/lib or the whole source)?

I assume that if there are any third-party plugins the authors might
have chosen to log anything in any possible format but I'd like to have
at least the most typical events parsed.


MK

Spadajspadaj

unread,
Nov 17, 2022, 3:31:59 AM11/17/22
to bareos...@googlegroups.com
OK. Did some digging and it seems that the general logging (apart from
the debug messages which I'm not touching here) is defined in
bareos/core/src/lib/message.cc as

1214 // Generate a Job message
1215 void Jmsg(JobControlRecord* jcr, int type, utime_t mtime, const
char* fmt, ...)

Unfortunately, there are almost 1100 various calls to Jmsg() across the
whole codebase with various different messages - some simple strings,
others - structure-based. And of course most probably, developers of
various plugins can add their own messages. So it's gonna simply be a
trial and error and probably will have to dig through sources on a
per-case need to know basis.

MK
Reply all
Reply to author
Forward
0 new messages