Comments (4)
There are maybe a couple of things at play here.
First of all, as you've mentioned, the source data is missing the year information, so binjr has to complete the elements its got with a default starting point in time, as it cannot deal with partial dates.
For better or worse, the default date I have chosen is 1970-01-01 00:00:00.000 UTC, which is 1969-12-31 16:00:00.000 (4pm) in your timezone (UTC-8).
So this explains why the year shown here is 1969: because the year component for the date was not provided, 1969 is used as a substitute while the day and month are overridden with the data parsed from the file.
With that said, even with this does not explain why the time components are not overridden (e.g. it says 4 p.m instead of 12 a.m.). I could not reproduce this with the parsing rules that you shared above, but this is however what you you get with parsing rules that only picked up the month and day, like such:
Is it possible at all that the two screenshots do not actually match (e.g. the log view in the second screenshot was taken with a version of the parsing rules that does not capture the time)?
If not, then there is probably a bug in binjr, but as I said I could not reproduce it.
from binjr.
Created this logfile:
Feb 19 00:00:01 thinkpad systemd[1]: Starting system activity accounting tool...
Feb 19 00:00:01 thinkpad audit: BPF prog-id=739 op=LOAD
Feb 19 00:00:01 thinkpad audit: BPF prog-id=740 op=LOAD
Feb 19 00:00:01 thinkpad systemd[1]: Starting update of the root trust anchor for DNSSEC validation in unbound...
Fresh screenshot of freshly-imported log file in a new worksheet:
I'd argue that the syslog format should have a year on it, but it's been sacrificed in the name of backwards-compatibility.
I would also argue that when there isn't a year, we should try to follow syslog's algorithm and assume the timestamp is for some moment in the past 365.26 days, with an option for users to override that.
If they've got a logfile containing multiple years' worth of entries, it's tougher: assume the file ends in the most recent 365.26-day period, and extrapolate backwards, assuming that there's at least one log entry per month and the timestamps are in monotonically increasing order. The filesystem timestamp of the logfile might be worth considering too: if it's roughly the same as the last log entry in the file (logrotation+compression effect), copy the year from it.
Although at some point, this turns into a data forensics problem. :-)
from binjr.
BTW, I changed the last line in the logfile to be Feb 19 00:00:03
to see if the problem was caused by all the entries having the same timestamp, but it didn't help, the time range at the top of the worksheet was still 1969-02-08 3:59:59pm to 4:00:00pm.
It's odd that it's grabbing Feb 8th, and not Feb 20th or Jan 1st.
BTW, this is Binjr 3.11.0, downloaded yesterday.
from binjr.
I have created two separate issues to track the problems that surfaced in this one:
- #129 - Let users choose the date & time that serves as an anchor to construct timestamps for partial data to track making the default time reference point user-selectable
- 130 - Different behaviour when typing the name of a TemporalCaptureGroup or selecting it from the dropdown list in profile editor to track the bug that was the root cause for some parsing keyword not working (and the source of much confusion)
@PenelopeFudd I'm therefore closing this issue; feel free to reopen it if you feel there's a need.
from binjr.
Related Issues (20)
- The “Auto scale Y axis” setting is reset when clicking the “back” button HOT 1
- Number format in table view HOT 3
- The test demo doesn't work HOT 2
- Application won't start if JAVA_HOME points to Java8 on Windows HOT 8
- support for timestamp in milliseconds (CSVAdapter) HOT 5
- Cannot open demo workspace HOT 5
- Support for timestamp NOT in the first column (CSVAdapter) HOT 2
- New user experience HOT 13
- Add single file open mode to log adapter
- Log file adapter does not list files without extenstions
- Files selection on Linux do not show files with no extensions when "All files" filter is selected
- Let users choose the date & time that serves as an anchor to construct timestamps for partial data
- Different behaviour when typing the name of a TemporalCaptureGroup or selecting it from the dropdown list in profile editor
- Log events text area is not using a monotype font on Linux and macOS
- binjr on the AUR (Arch User Repository) HOT 15
- Support for SQLite
- Support for Prometheus
- CSV parser: Scientific number format does not accept <nn>E+<nn> as written by numpy savetxt() HOT 1
- Date only data series HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binjr.