summaryrefslogtreecommitdiffstats
path: root/runtime/datetime.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.