<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I fixed the issue with udp being dropped at the system level by changing the linux core files but this time restarting the system, now I know they are missing somewhere between getting to the system and syslog-ng :(<br><br>I'm lost once again...<br><br><div><hr id="stopSpelling">From: chebannedmeagain@hotmail.com<br>To: syslog-ng@lists.balabit.hu<br>Subject: Re:  Ubuntu Precise -ng filling out buffer,        dropping messages<br>Date: Tue, 29 Apr 2014 09:43:06 -0700<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Thanks for responding!<br><br>The exact version is of syslog-ng is 3.3.4.&nbsp; Here's something you may find of interest.<br><br>1K Messages<br>root@badbox:/proc/net# nc -lku 514 &gt; /tmp/testing123.txt<br>root@goodbox:/proc/sys/net# loggen --inet --dgram --size 500 --rate 1000 --interval 30 badbox.cbf 514<br>average rate = 996.43 msg/sec, count=29893 &lt;--------------- sent<br>root@badbox:/proc/net# cat /tmp/testing123.txt | wc -l<br>24081 &nbsp;&lt;------------ received/processed<br><br>Lower the rate to 150 messages per second:<br>root@goodbox:/proc/sys/net# loggen --inet --dgram --size 500 --rate 150 --interval 30 badbox.cbf 514<br>average rate = 149.03 msg/sec, count=4471 &lt; -------------------- sent<br>root@badbox:/proc/net# cat /tmp/testing123.txt | wc -l<br>4471 &lt; -------------------------- received/processed<br><br>At this point, given the test above, I don't know if this is a system issue or a syslog-ng issue.&nbsp; It seems to be system, but I really can't tell what.<br><br><br><div>&gt; From: syslog-ng-request@lists.balabit.hu<br>&gt; Subject: syslog-ng Digest, Vol 108, Issue 24<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Date: Tue, 29 Apr 2014 13:25:01 +0200<br>&gt; <br>&gt; Send syslog-ng mailing list submissions to<br>&gt;         syslog-ng@lists.balabit.hu<br>&gt; <br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt;         https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>&gt; or, via email, send a message with subject or body 'help' to<br>&gt;         syslog-ng-request@lists.balabit.hu<br>&gt; <br>&gt; You can reach the person managing the list at<br>&gt;         syslog-ng-owner@lists.balabit.hu<br>&gt; <br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of syslog-ng digest..."<br>&gt; <br>&gt; <br>&gt; Today's Topics:<br>&gt; <br>&gt;    1. Re:  Ubuntu Precise -ng filling out buffer,        dropping messages<br>&gt;       (Gergely Nagy)<br>&gt;    2.  [Bug 279] Syslog-ng central loging server seg fault        gentoo<br>&gt;       (bugzilla@bugzilla.balabit.com)<br>&gt;    3.  [Bug 279] Syslog-ng central loging server seg fault        gentoo<br>&gt;       (bugzilla@bugzilla.balabit.com)<br>&gt;    4. Re:  Pattern DB Parser "Default Values" (Gergely Nagy)<br>&gt;    5. Re:  syslog-ng does not start if destination host not        found<br>&gt;       (Gergely Nagy)<br>&gt;    6.  [Bug 275] lib/filter/filter-in-list.c does not compile under<br>&gt;       Solaris 10 (bugzilla@bugzilla.balabit.com)<br>&gt;    7.  [Bug 279] Syslog-ng central loging server seg fault        gentoo<br>&gt;       (bugzilla@bugzilla.balabit.com)<br>&gt;    8. Re:  Basic (?) multi line question (Jim Hendrick)<br>&gt; <br>&gt; <br>&gt; ----------------------------------------------------------------------<br>&gt; <br>&gt; Message: 1<br>&gt; Date: Tue, 29 Apr 2014 12:24:09 +0200<br>&gt; From: Gergely Nagy &lt;algernon@balabit.hu&gt;<br>&gt; Subject: Re: [syslog-ng] Ubuntu Precise -ng filling out buffer,<br>&gt;         dropping messages<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Message-ID: &lt;87mwf4xwl2.fsf@balabit.hu&gt;<br>&gt; Content-Type: text/plain<br>&gt; <br>&gt; Hi!<br>&gt; <br>&gt; Chaman Chakalaka &lt;chebannedmeagain@hotmail.com&gt; writes:<br>&gt; <br>&gt; &gt; I'm trying to process ~800 UDP messages second, which I don't think is<br>&gt; &gt; much. The current setup worked fine in Ubuntu 10.04 (Lucid) and<br>&gt; &gt; syslog-ng 2.6 (I believe). I'm running into what I believe is receive<br>&gt; &gt; buffer problems on Ubuntu Server 12.04 (Precise) w/ ng 3.XX<br>&gt; <br>&gt; First of all, what's the exact version of your syslog-ng? Precise has a<br>&gt; fairly old version, one that's... not exactly the best release. I'd<br>&gt; suggest you give a try to the packages at:<br>&gt;   http://asylum.madhouse-project.org/projects/debian/<br>&gt; <br>&gt; I'd suggest the syslog-ng 3.5 branch from there, and see if the problem<br>&gt; persists with an upgraded syslog-ng. If it persists, let us know, and<br>&gt; we'll help debug the issue further.<br>&gt; <br>&gt; -- <br>&gt; |8]<br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 2<br>&gt; Date: Tue, 29 Apr 2014 12:25:38 +0200 (CEST)<br>&gt; From: bugzilla@bugzilla.balabit.com<br>&gt; Subject: [syslog-ng] [Bug 279] Syslog-ng central loging server seg<br>&gt;         fault        gentoo<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Message-ID: &lt;20140429102538.E2BAC39DC88@lists.balabit.hu&gt;<br>&gt; Content-Type: text/plain; charset="UTF-8"<br>&gt; <br>&gt; https://bugzilla.balabit.com/show_bug.cgi?id=279<br>&gt; <br>&gt; <br>&gt; Gergely Nagy &lt;algernon@balabit.hu&gt; changed:<br>&gt; <br>&gt;            What    |Removed                     |Added<br>&gt; ----------------------------------------------------------------------------<br>&gt;                  CC|                            |algernon@balabit.hu<br>&gt;          AssignedTo|bazsi@balabit.hu            |algernon@balabit.hu<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email<br>&gt; ------- You are receiving this mail because: -------<br>&gt; You are watching all bug changes.<br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 3<br>&gt; Date: Tue, 29 Apr 2014 12:29:08 +0200 (CEST)<br>&gt; From: bugzilla@bugzilla.balabit.com<br>&gt; Subject: [syslog-ng] [Bug 279] Syslog-ng central loging server seg<br>&gt;         fault        gentoo<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Message-ID: &lt;20140429102908.849C539DC78@lists.balabit.hu&gt;<br>&gt; Content-Type: text/plain; charset="UTF-8"<br>&gt; <br>&gt; https://bugzilla.balabit.com/show_bug.cgi?id=279<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; --- Comment #1 from Gergely Nagy &lt;algernon@balabit.hu&gt;  2014-04-29 12:29:08 ---<br>&gt; Without debug symbols, the backtrace is fairly useless for debugging purposes, unfortunately. It would help tremendously, if you could reproduce the problem<br>&gt; with a non-stripped binary, so we see the functions in the backtrace.<br>&gt; <br>&gt; Meanwhile, can I ask what config you use on the host where the segmentation fault happened? Maybe we can figure something out from that...<br>&gt; <br>&gt; Thanks!<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email<br>&gt; ------- You are receiving this mail because: -------<br>&gt; You are watching all bug changes.<br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 4<br>&gt; Date: Tue, 29 Apr 2014 12:41:44 +0200<br>&gt; From: Gergely Nagy &lt;algernon@balabit.hu&gt;<br>&gt; Subject: Re: [syslog-ng] Pattern DB Parser "Default Values"<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Cc: Balazs Scheidler &lt;bazsi@balabit.com&gt;<br>&gt; Message-ID: &lt;87iopsxvrr.fsf@balabit.hu&gt;<br>&gt; Content-Type: text/plain<br>&gt; <br>&gt; David Hauck &lt;davidh@netacquire.com&gt; writes:<br>&gt; <br>&gt; &gt; I was wondering if there was a way to specify default values for<br>&gt; &gt; pattern DB parsers that include a value, but where the parsed value is<br>&gt; &gt; &lt;null&gt;[/empty]?<br>&gt; &gt;<br>&gt; &gt; In particular if I have something like the following:<br>&gt; &gt;<br>&gt; &gt;           &lt;pattern&gt;test message; field1=@ESTRING:field1: @field2=@ESTRING:field2: @field3=@ESTRING:: @field4=@ESTRING:field4: @&lt;/pattern&gt;<br>&gt; &gt;<br>&gt; &gt; I'd like to be able to do something like either, 1:<br>&gt; &gt;<br>&gt; &gt;           &lt;pattern&gt;test message; field1=@ESTRING:field1&lt;foo&gt;: @field2=@ESTRING:field2&lt;bar&gt;: @field3=@ESTRING:: @field4=@ESTRING:field4&lt;beef&gt;: @&lt;/pattern&gt;<br>&gt; &gt;<br>&gt; &gt; Or 2:<br>&gt; &gt;<br>&gt; &gt;           &lt;pattern&gt;test message; field1=@ESTRING:field1: @field2=@ESTRING:field2: @field3=@ESTRING:: @field4=@ESTRING:field4: @&lt;/pattern&gt;<br>&gt; &gt;         &lt;values&gt;<br>&gt; &gt;           &lt;value name="field1.default"&gt;foo&lt;/value&gt;<br>&gt; &gt;           &lt;value name="field2.default"&gt;bar&lt;/value&gt;<br>&gt; &gt;           &lt;value name="field4.default"&gt;beef&lt;/value&gt;<br>&gt; &gt;<br>&gt; &gt; Just curious...<br>&gt; <br>&gt; You can use ${field1:-foo} in templates, to set a default if none is<br>&gt; set. It doesn't work for empty fields, though, but that can be worked<br>&gt; around with an $(if $(length $field1) eq 0 "default" $field1) template,<br>&gt; possibly in a rewrite rule.<br>&gt; <br>&gt; Though, maybe ${field1:-foo} should work for empty values too, not just<br>&gt; unset ones (to mimic shell better, which does just that). I can make it<br>&gt; do so, if that'd be desired, would make it unnecessary to use the $(if)<br>&gt; hack.<br>&gt; <br>&gt; @Bazsi: What do you think?<br>&gt; <br>&gt; -- <br>&gt; |8]<br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 5<br>&gt; Date: Tue, 29 Apr 2014 12:59:56 +0200<br>&gt; From: Gergely Nagy &lt;algernon@balabit.hu&gt;<br>&gt; Subject: Re: [syslog-ng] syslog-ng does not start if destination host<br>&gt;         not        found<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Message-ID: &lt;87eh0gxuxf.fsf@balabit.hu&gt;<br>&gt; Content-Type: text/plain<br>&gt; <br>&gt; "Bendler, Ehren" &lt;ebendler@ciena.com&gt; writes:<br>&gt; <br>&gt; [...]<br>&gt; &gt; If this is the intended behavior, that's fine too. We can deploy our<br>&gt; &gt; own patch to the afsocket module if it isn't going to be changed in a<br>&gt; &gt; release.<br>&gt; <br>&gt; No, this is definitely not the intended behaviour. Some change between<br>&gt; 3.3.5 and 3.5.7 broke the fix, I'll go ahead and restore the intended<br>&gt; behaviour. Thanks for reporting the issue!<br>&gt; <br>&gt; Unfortunately, I can't help with the other issue at the moment, but I'll<br>&gt; try to revisit it later.<br>&gt; <br>&gt; -- <br>&gt; |8]<br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 6<br>&gt; Date: Tue, 29 Apr 2014 13:09:22 +0200 (CEST)<br>&gt; From: bugzilla@bugzilla.balabit.com<br>&gt; Subject: [syslog-ng] [Bug 275] lib/filter/filter-in-list.c does not<br>&gt;         compile under Solaris 10<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Message-ID: &lt;20140429110922.7AD9939DC99@lists.balabit.hu&gt;<br>&gt; Content-Type: text/plain; charset="UTF-8"<br>&gt; <br>&gt; https://bugzilla.balabit.com/show_bug.cgi?id=275<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; --- Comment #2 from Gergely Nagy &lt;algernon@balabit.hu&gt;  2014-04-29 13:09:22 ---<br>&gt; I think we can change the code to use find_cr_or_lf(), instead of using getline(), or reimplement something like getline() in terms of find_cr_or_lf() + fgets<br>&gt; (or mmap or something). That would solve the problem without having to add much to misc.c. I'll see what I can do.<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email<br>&gt; ------- You are receiving this mail because: -------<br>&gt; You are watching all bug changes.<br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 7<br>&gt; Date: Tue, 29 Apr 2014 13:21:01 +0200 (CEST)<br>&gt; From: bugzilla@bugzilla.balabit.com<br>&gt; Subject: [syslog-ng] [Bug 279] Syslog-ng central loging server seg<br>&gt;         fault        gentoo<br>&gt; To: syslog-ng@lists.balabit.hu<br>&gt; Message-ID: &lt;20140429112101.BD6F339DCA1@lists.balabit.hu&gt;<br>&gt; Content-Type: text/plain; charset="UTF-8"<br>&gt; <br>&gt; https://bugzilla.balabit.com/show_bug.cgi?id=279<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; --- Comment #2 from Martin &lt;hlavacek@gmx.com&gt;  2014-04-29 13:21:02 ---<br>&gt; I thought that I have recompiled syslog with debug symbols because I have added --enable-debug to my ebuild:<br>&gt; <br>&gt; syslog1 ~ # syslog-ng -V<br>&gt; syslog-ng 3.4.7<br>&gt; Installer-Version: 3.4.7<br>&gt; Revision: ssh+git://algernon@git.balabit/var/scm/git/syslog-ng/syslog-ng-ose--mainline--3.4#detached_from_v3.4.3#999a7a6102d40da44b75a2acf78e54244164771f<br>&gt; Compile-Date: Apr 29 2014 13:06:40<br>&gt; Available-Modules:<br>&gt; affile,afprog,afsocket-notls,afsocket-tls,afuser,basicfuncs,confgen,csvparser,dbparser,syslogformat,cryptofuncs,system-source,afamqp,afsocket<br>&gt; Enable-Debug: on  <br>&gt; Enable-GProf: off<br>&gt; Enable-Memtrace: off<br>&gt; Enable-IPv6: on<br>&gt; Enable-Spoof-Source: off<br>&gt; Enable-TCP-Wrapper: on<br>&gt; Enable-Linux-Caps: off<br>&gt; Enable-Pcre: on<br>&gt; <br>&gt; You can see that opt "Enable-Debug:" is ON. It is not enought? If not can you please give me any advice how should I recompile this binary in proper way in<br>&gt; gentoo?<br>&gt; <br>&gt; Size of binary is:<br>&gt; syslog1 ~ # ls -lah /usr/sbin/syslog-ng<br>&gt; 16K -rwxr-xr-x 1 root root 15K Apr 29 13:18 /usr/sbin/syslog-ng*<br>&gt; <br>&gt; Configure options by emerge:<br>&gt; ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share<br>&gt; --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-silent-rules --disable-dependency-tracking --with-ivykis=internal<br>&gt; --with-libmongo-client=internal --sysconfdir=/etc/syslog-ng --localstatedir=/var/lib/syslog-ng --with-pidfile-dir=/var/run<br>&gt; --with-module-dir=/usr/lib64/syslog-ng --enable-debug --with-systemdsystemunitdir=/usr/lib/systemd/system --disable-systemd --disable-linux-caps<br>&gt; --disable-geoip --enable-ipv6 --disable-json --disable-mongodb --enable-pcre --disable-smtp --disable-spoof-source --disable-sql --enable-ssl<br>&gt; --enable-tcp-wrapper<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email<br>&gt; ------- You are receiving this mail because: -------<br>&gt; You are watching all bug changes.<br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 8<br>&gt; Date: Tue, 29 Apr 2014 07:24:58 -0400<br>&gt; From: Jim Hendrick &lt;jrhendri@roadrunner.com&gt;<br>&gt; Subject: Re: [syslog-ng] Basic (?) multi line question<br>&gt; To: Syslog-ng users' and developers' mailing list<br>&gt;         &lt;syslog-ng@lists.balabit.hu&gt;<br>&gt; Message-ID: &lt;535F8C0A.5060104@roadrunner.com&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; <br>&gt; Thanks all for the thoughts -<br>&gt; <br>&gt; I will try to write up some of the patterns and correlations, starting<br>&gt; with the most simple.<br>&gt; <br>&gt; This would (I think) be a valuable addition to track different logs that<br>&gt; have some dynamic id as a key.<br>&gt; <br>&gt; (ultimately I am hoping to parse specific data out of these multi-line<br>&gt; beasties and be able to populate a database directly from syslog-ng)<br>&gt; <br>&gt; I will work on writing this up this week.<br>&gt; <br>&gt; Thanks again!<br>&gt; Jim<br>&gt; <br>&gt; <br>&gt; On 04/29/2014 04:53 AM, Tusa Viktor wrote:<br>&gt; &gt; Hi!<br>&gt; &gt;<br>&gt; &gt; If you know the format of all the messages which possibly contains a<br>&gt; &gt; MID, you can write patterns for them and then you can use correlation<br>&gt; &gt; to extract information from these messages. But it only works with<br>&gt; &gt; special conditions, I think it wouldn't work in your case. But it<br>&gt; &gt; wouldn't be so hard to create such functionality in syslog-ng, so if<br>&gt; &gt; you open a github issue in http://github.com/balabit/syslog-ng, some<br>&gt; &gt; of us will try to make it work.<br>&gt; &gt;<br>&gt; &gt; Best Regards,<br>&gt; &gt; Viktor<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On Tue, Apr 29, 2014 at 8:14 AM, C. L. Martinez &lt;carlopmart@gmail.com<br>&gt; &gt; &lt;mailto:carlopmart@gmail.com&gt;&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;     Hi Jim,<br>&gt; &gt;<br>&gt; &gt;      Some time ago, I have tried the same: correlate logs for Ironport<br>&gt; &gt;     devices. And my conclusion was: impossible. I loose a lot info and<br>&gt; &gt;     some correlated logs are wrong ...<br>&gt; &gt;<br>&gt; &gt;      The only approach that maybe should work with opensource tools, IMO,<br>&gt; &gt;     is rsyslog+sec.pl &lt;http://sec.pl&gt;. But, as a Orangepeel says,<br>&gt; &gt;     logstash can be an<br>&gt; &gt;     option.<br>&gt; &gt;<br>&gt; &gt;     Bye.<br>&gt; &gt;<br>&gt; &gt;     On Mon, Apr 28, 2014 at 2:44 PM,  &lt;jrhendri@roadrunner.com<br>&gt; &gt;     &lt;mailto:jrhendri@roadrunner.com&gt;&gt; wrote:<br>&gt; &gt;     &gt; Hmmm - crickets :-)<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; I have some examples like this:<br>&gt; &gt;     &gt; &lt;date&gt; &lt;host&gt; &lt;program&gt;: Info: New SMTP ICID [0-9]{9} &lt;rest of<br>&gt; &gt;     message&gt;<br>&gt; &gt;     &gt; &lt;date&gt; &lt;host&gt; &lt;program&gt;: Info: Start MID [0-9]{9} ICID [0-9]{9}<br>&gt; &gt;     &lt;rest of message&gt;<br>&gt; &gt;     &gt; &lt;date&gt; &lt;host&gt; &lt;program&gt;: Info: Start MID [0-9]{9} ICID [0-9]{9}<br>&gt; &gt;     &lt;rest of message&gt;<br>&gt; &gt;     &gt; &lt;date&gt; &lt;host&gt; &lt;program&gt;: Info: Start MID [0-9]{9} ICID [0-9]{9}<br>&gt; &gt;     &lt;rest of message&gt;<br>&gt; &gt;     &gt; &lt;date&gt; &lt;host&gt; &lt;program&gt;: Info: Start MID [0-9]{9} ICID [0-9]{9}<br>&gt; &gt;     &lt;rest of message&gt;<br>&gt; &gt;     &gt; &lt;date&gt; &lt;host&gt; &lt;program&gt;: Info: New SMTP DCID [0-9]{9} &lt;rest of<br>&gt; &gt;     message&gt;<br>&gt; &gt;     &gt; &lt;date&gt; &lt;host&gt; &lt;program&gt;: Info: Message done DCID [0-9]{9} MID<br>&gt; &gt;     [0-9]{9} &lt;rest of message&gt;<br>&gt; &gt;     &gt; &lt;date&gt; &lt;host&gt; &lt;program&gt;: Info: ICID [0-9]{9} close<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; this is only an example to illustrate the different message<br>&gt; &gt;     elements that contain different kinds of IDs.<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; The issue is there will be interleaving with *different* ICID<br>&gt; &gt;     (inbound connections from different SMTP servers) each sending<br>&gt; &gt;     multiple MIDs (message IDs) and also different DCID (destination<br>&gt; &gt;     connections *to* different mail relays).<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; I have been looking at multi-line-mode(regexp) but that seems to<br>&gt; &gt;     imply all consecutive lines until the next regex match are assumed<br>&gt; &gt;     to be part of the same message.<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; I hope I can do something where all matching ICIDs are treated<br>&gt; &gt;     as part of one line, that can be parsed separately.<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; Not sure if this is possible with multi-line-mode *or* with some<br>&gt; &gt;     patterndb wizardry.<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; Has anyone addressed this?<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; Thanks for any working-examples/guidance/sympathy (in roughly<br>&gt; &gt;     that order :-)<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; Jim<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt; ---- jrhendri@roadrunner.com &lt;mailto:jrhendri@roadrunner.com&gt; wrote:<br>&gt; &gt;     &gt;&gt; Hi,<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt;   I am trying to parse data elements out of a variable number<br>&gt; &gt;     of log lines that all are associated by a single unique key.<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; Specifically - they are Cisco IronPort email logs that have<br>&gt; &gt;     various "ID" fields (MID - message ID is the most common)<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; Essentially I want to pull the MID out of the line marked marked:<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; "Start MID (\d+) &lt;other stuff&gt;"<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt;  and then process every line that matches that specific MID<br>&gt; &gt;     value as part of the message.<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; Note: they all have this string included somewhere:<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; "MID (\d+) "<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; Up to a reasonable timeout - or ended by:<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt;  "Message finished mid (\d+) done" with the matching ID.<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; Is this possible with syslog-ng? (OSE or PE?)<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; I thought I had seen something using patterndb but I cannot<br>&gt; &gt;     seem to find the reference<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; Clearly there will be interleaved lines with *different* MIDs<br>&gt; &gt;     that need to be processed independently.<br>&gt; &gt;     &gt;&gt;<br>&gt; &gt;     &gt;&gt; Thanks in advance!<br>&gt; &gt;     &gt;&gt; Jim<br>&gt; &gt;     &gt;<br>&gt; &gt;     &gt;<br>&gt; &gt;     ______________________________________________________________________________<br>&gt; &gt;     &gt; Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>&gt; &gt;     &gt; Documentation:<br>&gt; &gt;     http://www.balabit.com/support/documentation/?product=syslog-ng<br>&gt; &gt;     &gt; FAQ: http://www.balabit.com/wiki/syslog-ng-faq<br>&gt; &gt;     &gt;<br>&gt; &gt;     ______________________________________________________________________________<br>&gt; &gt;     Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>&gt; &gt;     Documentation:<br>&gt; &gt;     http://www.balabit.com/support/documentation/?product=syslog-ng<br>&gt; &gt;     FAQ: http://www.balabit.com/wiki/syslog-ng-faq<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ______________________________________________________________________________<br>&gt; &gt; Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>&gt; &gt; Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<br>&gt; &gt; FAQ: http://www.balabit.com/wiki/syslog-ng-faq<br>&gt; &gt;<br>&gt; <br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20140429/ebda655f/attachment.htm <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; syslog-ng maillist  -  syslog-ng@lists.balabit.hu<br>&gt; https://lists.balabit.hu/mailman/listinfo/syslog-ng<br>&gt; <br>&gt; <br>&gt; End of syslog-ng Digest, Vol 108, Issue 24<br>&gt; ******************************************<br></div>                                               </div></div>                                               </div></body>
</html>