diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-06-06 17:33:58 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-06-06 17:33:58 +0200 |
commit | 2687d0010ca0ec691235a69c9da021719b61e8cd (patch) | |
tree | d8275d258253ed44fce7d163b2f5f1448fd8a7d4 /template.c | |
parent | 6343cf730acbb454765d0593d68032aebcb3d15c (diff) | |
download | rsyslog-2687d0010ca0ec691235a69c9da021719b61e8cd.tar.gz rsyslog-2687d0010ca0ec691235a69c9da021719b61e8cd.tar.bz2 rsyslog-2687d0010ca0ec691235a69c9da021719b61e8cd.zip |
added new property replacer option "time-subseconds"
enables to query just the subsecond part of a high-precision timestamp
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -440,6 +440,8 @@ static void doOptions(unsigned char **pp, struct templateEntry *pTpe) pTpe->data.field.eDateFormat = tplFmtRFC3164Date; } else if(!strcmp((char*)Buf, "date-rfc3339")) { pTpe->data.field.eDateFormat = tplFmtRFC3339Date; + } else if(!strcmp((char*)Buf, "date-subseconds")) { + pTpe->data.field.eDateFormat = tplFmtSecFrac; } else if(!strcmp((char*)Buf, "lowercase")) { pTpe->data.field.eCaseConv = tplCaseConvLower; } else if(!strcmp((char*)Buf, "uppercase")) { |