-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datetime not properly adjusted with timezone for syslog parser #3280
Comments
I'm looking at the logic to understand where it can come from. TimeElements is created after detecting a traditional syslog record: Line 343 in 0bb6a19
In TimeElements initializer, self._number_of_seconds is set with self._time_zone_offset, however no information on the system timezone has been provided at that point: Immediately afterward, the property is_local_time is set: Line 345 in 0bb6a19
This property seems to used there: plaso/plaso/containers/time_events.py Line 30 in 98e302b
But apparently DateTimeValuesEvent is never initialized with a timezone. In other plugins, the KB timezone is retrieved from the parser mediator, is it what is missing ? Line 250 in f74f649
|
Thx, was about to update this. Yes that is what is missing, fix pending |
Are there maybe other affected plugins ? Timezones are critical and I always screw up when I deal with it manually. Thanks for the reactivity anyway. |
We are working on changes to preserve the time zone information (#910) so that corrections can be done easier after processing.
Timezones are very complicated, e.g. should Nov 25, 2020 02:00 (AM) or 03:00 (AM) be parsed as CEST or as CET ? |
See, we always screw-up when dealing manually with timezones. November is definitively Winter time ;-) |
not really, kind of depends on which hemisphere you are ;) |
True, it is inverted in South Africa. What a mess. |
Changes merged, added follow up action item to assess potential other affected parsers / plugins #3287 |
Description of problem:
When using the syslog plugin, I found a discrepancy between two systems that pointed me to a potential timezone bug in log2timeline.
The two analyzed system images are mounted in Linux before being parsed with log2timeline.py (instead of parsing a raw image).
Running pinfo.py shows proper detection of the timezone even if the analyzed system has been mounted in /mnt: CET for system1, UTC for system2.
However if I look at an arbitrary syslog event on the system1, psort output the event with the same timestamp than the original syslog entry (traditionnal syslog entry), showing that the datetime has not been adjusted to UTC.
Command line and arguments:
Source data:
Please provide the source data you used when you experienced the problem.
For publicly available data please provide an URL or path of the source data.
Plaso version:
20200717
Operating system Plaso is running on:
Archlinux
Installation method:
The text was updated successfully, but these errors were encountered: