summaryrefslogtreecommitdiffstats
path: root/runtime/datetime.c
Commit message (Collapse)AuthorAgeFilesLines
* ommongodb: now writes a real timestamp into mongoRainer Gerhards2012-03-301-10/+20
|
* added "date-unixtimestamp" property replacer option to format as a unix ↵Rainer Gerhards2012-03-291-0/+112
| | | | timestamp
* 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
| | |
* | | more cleanup...Rainer Gerhards2011-07-111-1/+0
| | |
* | | added support for obtaining timestamp from system for imuxsockRainer Gerhards2011-06-201-34/+43
|/ / | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'v4-stable' into v5-stableRainer Gerhards2011-06-161-1/+1
|\|
| * Merge branch 'v3-stable' into v4-stableRainer Gerhards2011-06-161-1/+1
| |\ | | | | | | | | | | | | Conflicts: runtime/datetime.c
| | * bugfix: timestamp was incorrectly calculated for timezones with minute offsetRainer Gerhards2011-06-161-1/+1
| | | | | | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=271
| * | added new property replacer option "date-rfc3164-buggyday"Rainer Gerhards2010-03-081-2/+6
| | | | | | | | | | | | | | | primarily to ease migration from syslog-ng. See property replacer doc for details. [backport from 5.5.3 because urgently needed by some]
* | | added new property replacer option "date-rfc3164-buggyday"Rainer Gerhards2010-03-051-2/+6
| | | | | | | | | | | | | | | primarily to ease migration from syslog-ng. See property replacer doc for details.
* | | Merge branch 'v4-beta' into masterRainer Gerhards2010-02-241-5/+12
|\| | | | | | | | | | | | | | | | | Conflicts: doc/manual.html tools/syslogd.c
| * | message parser fixes and testbench enhancementsRainer Gerhards2010-02-221-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | - improved testbench to contain samples for totally malformed messages which miss parts of the message content - bugfix: some malformed messages could lead to a missing LF inside files or some other missing parts of the template content. - bugfix: if a message ended immediately with a hostname, the hostname was mistakenly interpreted as TAG, and localhost be used as hostname
* | | some light performance enhancementRainer Gerhards2009-11-121-0/+19
|/ / | | | | | | | | ...by replacing time() call with much faster (at least under linux) gettimeofday() calls.
* | Merge branch 'v4-stable' into v4-beta & BUGFIXRainer Gerhards2009-10-011-37/+82
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-37/+77
| | |
* | | legacy syslog parser changed so that it now accepts date stamps in wrong case.Rainer Gerhards2009-08-171-22/+34
| | | | | | | | | | | | Some devices seem to create them and I do not see any harm in supporting that.
* | | bugfix: missing initialization during timestamp creationv4.5.0Rainer Gerhards2009-07-031-0/+1
| | | | | | | | | | | | | | | This could lead to timestamps written in the wrong format, but not to an abort.
* | | introduced the idea of detached propertiesRainer Gerhards2009-06-291-5/+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-3/+2
| | |
* | | optimized template string generationRainer Gerhards2009-06-191-4/+4
| | |
* | | typo fixRainer Gerhards2009-06-191-1/+1
| | |
* | | some cleanupRainer Gerhards2009-06-191-11/+6
| | |
* | | fully optimized datetime module and enhanced test suiteRainer Gerhards2009-06-191-78/+88
| | | | | | | | | | | | tests for the various timestamp formats have been added
* | | optimized rfc3339 timestamp string generationRainer Gerhards2009-06-191-30/+73
|/ /
* | done various optimizations to the stringbuf and its usersRainer Gerhards2009-06-161-3/+2
| |
* | added capability to run multiple tcp listeners (on different ports)Rainer Gerhards2009-05-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | 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.
* | improved parser test suiteRainer Gerhards2009-04-031-1/+1
| | | | | | | | new tests added, now much better
* | enhanced legacy syslog parser to detect year if part of the timestampv4.1.0Rainer Gerhards2008-11-181-0/+19
| | | | | | | | The format is based on what Cisco devices seem to emit.
* | "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-2/+10
|/ | | | | | | 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.
* Merge branch 'beta'Rainer Gerhards2008-10-021-1/+1
|\
| * bugfix: subseconds where not correctly extracted from a timestampRainer Gerhards2008-10-021-1/+1
| | | | | | | | | | if that timestamp did not contain any subsecond information (the resulting string was garbagge but should have been "0", what it now is).
* | performance optimization: unnecessary time() calls during message parsing ↵Rainer Gerhards2008-09-161-110/+158
|/ | | | | | removed thanks to David Lang for his excellent performance analysis
* Merge branch 'v3-stable' into betaRainer Gerhards2008-09-121-3/+14
| | | | | | | Conflicts: runtime/datetime.h runtime/rsyslog.h
* added new property replacer option "time-subseconds"Rainer Gerhards2008-06-061-0/+40
| | | | enables to query just the subsecond part of a high-precision timestamp
* moved files to the runtimeRainer Gerhards2008-04-161-0/+630
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.