summaryrefslogtreecommitdiffstats
path: root/runtime/datetime.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v5-stable' into masterRainer Gerhards2012-01-181-16/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog action.h configure.ac doc/manual.html plugins/immark/immark.c plugins/impstats/impstats.c plugins/imptcp/imptcp.c plugins/imtcp/imtcp.c runtime/cfsysline.c runtime/cfsysline.h runtime/conf.c runtime/ctok.c runtime/ctok.h runtime/ctok_token.c runtime/ctok_token.h runtime/dnscache.h runtime/expr.c runtime/expr.h runtime/rule.c runtime/rule.h runtime/ruleset.h runtime/sysvar.c runtime/vm.h runtime/vmop.c runtime/vmop.h runtime/vmprg.c runtime/vmprg.h runtime/vmstk.c runtime/vmstk.h tools/omusrmsg.c
| * Merge branch 'v4-stable' into v5-stableRainer Gerhards2012-01-161-16/+14
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/debug.h runtime/obj.c runtime/parser.h runtime/wti.h
| | * runtime license changeRainer Gerhards2012-01-161-16/+14
| | |
* | | added support for obtaining timestamp from system for imuxsockRainer Gerhards2011-06-201-1/+4
|/ / | | | | | | | | | | | | | | | | | | | | This permits to read the time a message was submitted to the system log socket. Most importantly, this is provided in microsecond resolution. So we are able to obtain high precision timestampis even for messages that were - as is usual - not formatted with them. This also simplifies things in regard to local time calculation in chroot environments. Many thanks to Lennart Poettering for suggesting this feature, providing some guidance on implementing it and coordinating getting the necessary support into the Linux kernel.
* | bugfix: fixed compile problem due to empty structsDražen Kačar2011-02-161-0/+1
| | | | | | | | | | | | | | this occured only on some platforms/compilers. thanks to Dražen Kačar for the fix Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | Merge branch 'v4-stable' into v5-stableRainer Gerhards2010-03-091-2/+5
|\| | | | | | | | | | | Conflicts: ChangeLog runtime/datetime.h
| * added new property replacer option "date-rfc3164-buggyday"Rainer Gerhards2010-03-081-2/+4
| | | | | | | | | | primarily to ease migration from syslog-ng. See property replacer doc for details. [backport from 5.5.3 because urgently needed by some]
* | some light performance enhancementRainer Gerhards2009-11-121-1/+3
|/ | | | | ...by replacing time() call with much faster (at least under linux) gettimeofday() calls.
* Merge branch 'v4-stable' into v4-beta & BUGFIXRainer Gerhards2009-10-011-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html runtime/datetime.h runtime/parser.c runtime/rsyslog.h tools/syslogd.c v4-stable had a bug with RFC5424-formatted structured data, which showed was detected by the enhanced automatted testbench of v4-beta.
| * bugfix: random data could be appended to message, possibly causing segfaultsRainer Gerhards2009-09-241-2/+2
| |
* | introduced the idea of detached propertiesRainer Gerhards2009-06-291-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | some things inside the message can be used over a large number of messages and need to to be allocated and re-written every time. I now begin to implement this as a "prop_t" object, first use for the inputName. Some input modules are already converted, some others to go. Will do a little performance check on the new method before I go further. Also, this commit has some cleanup and a few bug fixes that prevented compiliation in debug mode (I overlooked this as I did not compile for debug, what I normally do, and the automatted test also does not do that)
* | cleanup (removed now-unused parameters)Rainer Gerhards2009-06-251-4/+4
| |
* | some more optimizations of the msg_t object (minor)Rainer Gerhards2009-06-221-1/+1
|/
* added capability to run multiple tcp listeners (on different ports)Rainer Gerhards2009-05-221-2/+2
| | | | | | | | | | | Well, actually this and a lot of related things. I improved the testbench so that the new capabilities are automatically tested and also did some general cleanup. The current multiple tcp listener solution will probably receive some further cleanup, too, but looks quite OK so far. I also reviewed the way tcpsrv et all work, in preparation of using this code for imdiag. I need to document the findings, especially as the code is rather complicated "thanks" to the combination of plain tcp and gssapi transport modes.
* "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-1/+1
| | | | | | | This enhances performance and, as some have pointed out, is probably also more consistent with what users expect how the various output-timestamp related function should work. This commit needs some more testing.
* performance optimization: unnecessary time() calls during message parsing ↵Rainer Gerhards2008-09-161-2/+2
| | | | | | removed thanks to David Lang for his excellent performance analysis
* Merge branch 'v3-stable' into betaRainer Gerhards2008-09-121-1/+7
| | | | | | | Conflicts: runtime/datetime.h runtime/rsyslog.h
* reduced number of compile warnings in -pedantic gcc modeRainer Gerhards2008-06-271-1/+0
|
* added new property replacer option "time-subseconds"Rainer Gerhards2008-06-061-1/+2
| | | | enables to query just the subsecond part of a high-precision timestamp
* moved files to the runtimeRainer Gerhards2008-04-161-0/+52
there are still some files left which could go into the runtime, but I think we will delete most of them once we are done with the full modularization.