On Wed, 4 Apr 2018, Rich Megginson wrote:

On 04/04/2018 06:42 PM, David Lang wrote:
On Wed, 4 Apr 2018, Rich Megginson wrote:


Stacktrace?

a bit hard to get (things are being run on a production machine after umpteen layers of automation)

here's what I can get so far

ok - so definitely something wrong with the filenamerules parsing.

possibly my error, I had the filenamerules split into two lines and didn't catch it. does this look any better?

note: I had to add rule= in each of the rules, just having them start with : generated the earlier error message

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `rsyslogd -dn'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f6c47e3c18c in fgetpos@@GLIBC_2.2.5 () from /usr/lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install rsyslog-8.34.0-1.el7.centos.x86_64
(gdb) bt
#0  0x00007f6c47e3c18c in fgetpos@@GLIBC_2.2.5 () from /usr/lib64/libc.so.6
#1 0x00007f6c42145993 in ln_sampChkRunawayRule () from /usr/lib64/liblognorm.so.5
#2  0x00007f6c42145cae in ln_sampRead () from /usr/lib64/liblognorm.so.5
#3 0x00007f6c42146920 in ln_sampLoadFromString () from /usr/lib64/liblognorm.so.5 #4 0x00007f6c42141b6f in ln_loadSamplesFromString () from /usr/lib64/liblognorm.so.5
#5  0x00007f6c42361e88 in set_lnctx () from /usr/lib64/rsyslog/mmkubernetes.so
#6  0x00007f6c42363482 in newActInst () from /usr/lib64/rsyslog/mmkubernetes.so
#7  0x000055b45d49bb51 in actionNewInst ()
#8  0x000055b45d4663bf in cnfstmtNewAct ()
#9  0x000055b45d45b0e2 in yyparse ()
#10 0x000055b45d46f234 in load ()
#11 0x000055b45d44dff6 in initAll ()
#12 0x000055b45d44bd8f in main ()
(gdb) quit
[root@xvbb-c21 rsyslog.d]# grep -v '^#' ../rsyslog.conf|grep [a-z\)]
module(load="imfile" PollingInterval="10") # provided support for monitoring alternate log files module(load="imuxsock") # provides support for local system logging (e.g. via logger command) module(load="imklog") # provides kernel logging support (previously done by rklogd)
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
module(load="imjournal"  PersistStateInterval="100")
module(load="mmkubernetes" kubernetesurl="http://k8s-master.lc.dc.openx.org:8080";
  token="foobar"
  annotation_match=[".*"]
  filenamerules=["rule=:/var/log/containers/%pod_name:char-to:.%.%container_hash:char-to:_%_%namespace_name:char-to:_%_%container_name:char-to:-%-%container_id:char-to:.%.log","rule=:/var/log/containers/%pod_name:char-:_%_%namespace_name:char-to:_%_%container_name:char-to:-%-%container_id:char-to:.%.log"]
)
action(type="mmkubernetes")
stop
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to