Commit Graph

6 Commits

Author SHA1 Message Date
Miguel Angel Ajo 5b9c82746b Bump version to 1.1.0 for release
Change-Id: I0461a7bf6ef78ff2afeb2c38ea4478b4b3cda46c
2017-03-15 11:18:33 +01:00
Miguel Ángel Ajo 561b4310f7 Merge pull request #25 from Akrog/issue7/other_log_formats
Add support for other log formats
2016-03-29 12:21:01 +02:00
Gorka Eguileor ef9b9bd54f Fix #7: Add support for timestamped logs
This patch adds support for timestamped log files with the format
"[    0.003036]".

Since timestamp many times will not take epoc time as the source of the
timestamp but the time the system started, the initial datetime will be
calculated by substracting from the file modified datetime the last
timestamp in the file.

Option added is --timestamp-logs or -tl, and it also supports ALIAS and
globs, and is also affected by base directory and postfix options.
2016-03-25 15:14:45 +01:00
Gorka Eguileor 8c3ae25c17 Add Support /var/log/messages type of logs
This patch adds support for log files that use the same datetime format
as /var/log/messages, which is in the for of Oct 15 14:11:19.

Year will from last modification to the file will be used to complete
missing year.

In the process of refactoring the read of the logs the OpenStack log
reading has been simplified to not require the presence of PID or LEVEL,
thus providing more compatibility with custom log formats (as long as
default datetime format is being used).

With this refactoring it is now easier to add new datetime formats to
the script.

Option added is --msg-logs or -ml and it also supports ALIAS and globs,
and is also affected by base directory and postfix options.

TODO: If year of file creation and file last modification are different
we should start with the cration year and then change to the next year
once the months go back.
2016-03-25 15:14:25 +01:00
Gorka Eguileor 50f1564adb Fix #19: Empty output with -m option
When one of the log files is empty and we use `-m` option we will get no
output, unlike normal operation that would output contents of all other
files correctly.

This patch fixes this by removing from the files to read empty ones like
we do once we start processing the files.
2016-03-25 14:58:39 +01:00
Gorka Eguileor 09c5dd3b16 Add CHANGELOG file
This patch adds a changelog file to reflect version changes history.
2016-03-20 18:57:40 +01:00