No subject


Mon Dec 3 12:26:40 CET 2012


I'd like to pump a bunch of messages (other than PADPADPAD) through loggen
to generate tests.
But it doesn't say anything about what format to use.
I've tried using just a text file with a message per line, but I
get Invalid line X for some messages an not others.

Am I just misunderstanding what this command line option is for?

Sample Messages:
2012-11-27 08:48:29     16.22.1.42   %SYS-3-CPUHOG: the CPU is hogged
2012-11-27 08:48:29     16.22.2.42   %IR-6-INSCARD: Card inserted in slot
0, interfaces administratively shut down
2012-11-27 08:48:29     16.22.2.42   %OIR-6-REMCARD: Card removed from slot
0, interfaces disabled

So it seem I should be able to use:
loggen --size 300 --rate 6000 --interval 600 192.168.28.29 514 -R
./myfile.txt

but then only some lines work and some don't. Sometimes the host comes in
on the receiving server as an invalid IP.
Is there a way to specify tokens, like f1=datetime -f2=host -f3=PRI -f4=msg.
Would really be nice if we could also specify the delimiter between them,
like:
f1=datetime -f2=host -f3=PRI -f4=msg  --delim=\t



______________________________________________________________

Clayton Dukes
______________________________________________________________

--20cf3074b14215483604d2cd018f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

What is the expected file format used for loggen?<div>i.e: which tokens sho=
uld each line consist of?</div><div><br><div><br></div><div>From the docs:<=
/div><div><a href=3D"http://www.balabit.com/sites/default/files/documents/s=
yslog-ng-ose-3.3-guides/syslog-ng-ose-v3.3-guide-admin-en.html/loggen.1.htm=
l">http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.3-g=
uides/syslog-ng-ose-v3.3-guide-admin-en.html/loggen.1.html</a></div>
<div><br></div><div>I&#39;d like to pump a bunch of messages (other than PA=
DPADPAD) through loggen to generate tests.</div><div>But it doesn&#39;t say=
 anything about what format to use.=A0</div><div>I&#39;ve tried using just =
a text file with a=A0message=A0per line, but I get=A0Invalid line X for som=
e messages an not others.</div>
<div><br></div><div>Am I just misunderstanding what this command line optio=
n is for?</div><div><br></div><div>Sample Messages:</div><div><div>2012-11-=
27 08:48:29 =A0 =A0 16.22.1.42 =A0 %SYS-3-CPUHOG: the CPU is hogged</div><d=
iv>
2012-11-27 08:48:29 =A0 =A0 16.22.2.42 =A0 %IR-6-INSCARD: Card inserted in =
slot 0, interfaces administratively=A0shut down</div><div>2012-11-27 08:48:=
29 =A0 =A0 16.22.2.42 =A0 %OIR-6-REMCARD: Card removed from slot 0, interfa=
ces disabled</div>
</div><div><br></div><div>So it seem I should be able to use:</div><div>log=
gen --size 300 --rate 6000 --interval 600 192.168.28.29 514 -R ./myfile.txt=
</div><div><br></div><div>but then only some lines work and some don&#39;t.=
 Sometimes the host comes in on the receiving server as an invalid IP.</div=
>
<div>Is there a way to specify tokens, like=A0f1=3Ddatetime -f2=3Dhost -f3=
=3DPRI -f4=3Dmsg.</div><div>Would really be nice if we could also specify t=
he delimiter between them, like:</div><div>f1=3Ddatetime -f2=3Dhost -f3=3DP=
RI -f4=3Dmsg =A0--delim=3D\t</div>
<div><br></div><div><br></div><div><br clear=3D"all"><div>_________________=
_____________________________________________ <br><br>Clayton Dukes<br>____=
__________________________________________________________</div>
</div></div>

--20cf3074b14215483604d2cd018f--


More information about the syslog-ng mailing list