You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ./logs/Ubuntu22/syslog has contents (truncated)
Oct 3 21:48:21 host4b systemd[1]: rsyslog.service: Sent signal SIGHUP to main process 757 (rsyslogd) on client request.
Oct 3 21:48:21 host4b systemd[1]: logrotate.service: Deactivated successfully.
File modified time is 2022-10-03 21:48:21 -0700.
The printed summary datetime first will be 1972-10-03T21:48:21-08:00 which is the wrong year.
To Reproduce
command
./target/debug/s4 ./logs/Ubuntu22/syslog -s -a '20230403' -u
→process_stage2_find_dt:
WARNING: called dt_pattern_has_year() without having processed some syslines
dt_pattern_index_max_count: self.dt_patterns_counts[index 33]=2 is DateTimeParseInstr: { regex_pattern: "^>
dt_pattern_index_max_count: self.dt_patterns_indexes 33
dt_pattern_index_max_count: after analysis
↔dt_pattern_has_year: dtpd line 3119
I'm not sure if it is related.
The interpreted datetimes for each sysline is correct, as shown by the -u prepended datetime.
Environment:
OS: Ubuntu 22
s4 version: 0.6.68
The text was updated successfully, but these errors were encountered:
jtmoon79
changed the title
syslog file without year and passed dt filters has wrong summary datetime first
syslog file without year and passed --dt-filter-after has wrong summary datetime first
Mar 3, 2024
Describe the bug
File
./logs/Ubuntu22/syslog
has contents (truncated)File modified time is 2022-10-03 21:48:21 -0700.
The printed summary datetime first will be
1972-10-03T21:48:21-08:00
which is the wrong year.To Reproduce
-b
does not cause the bugThe interpreted datetimes for each sysline is correct, as shown by the
-u
prepended datetime.Environment:
The text was updated successfully, but these errors were encountered: