Comments (8)
Basically, I removed the functionality. Although, it looks like I should add it back, but in a different form...
I wasn't sure how often -t
was used and I didn't like that people had to think ahead and remember to set the flag. I was also adding other functionality to run commands within lnav. So, I changed things around so that the timestamp was always recorded.
The main use I had for it was the time difference stuff and I didn't need the actual timestamps. But, it looks like the program you're piping into lnav is generating real log messages that you might want to merge with other log files. I'll see about adding a way to run a command to convert the text file to a log file (or maybe restore the -t
flag to do that conversion).
from lnav.
The time is always recorded for every line piped into lnav now. Itβs stored in the file of captured output. In the TEXT view you can see the timestamp for the current line in the breadcrumb bar and you can press shift+t to show the time differences between lines. I felt that covered the functionality of the -t flag, so I removed it.
from lnav.
ahh, thank you for the fast response! In v0.12 I can't seem to get the ISO format like we had in v0.11 - am I missing something?
v0.12
v0.11
from lnav.
Yeah I'm not sure how many people use it but it's often something I show to my colleagues over the years and becomes their daily driver.
For now my workaround is to use a separate build but has the side effect of the timestamp parsing fix introduced sometime in v0.12.
Appreciate the work and fast responses! Thanks so much!
from lnav.
I've pushed a change to restore the -t
flag, if you want to update and give it a try. I still need to add a separate command to convert a text file to a log.
Thanks for taking the time to file this bug.
from lnav.
Thanks for adding this non-trivial fix in so quickly! Hopefully it wasn't too distracting from other features.
Just updated to and works like a charm! π
from lnav.
The time is always recorded for every line piped into lnav now.
Out of curiosity β is the above no longer the case?
Wouldn't automatically recording time and using it as a timestamp if there's no timestamp detected in the input work?
from lnav.
The time is always recorded for every line piped into lnav now.
Out of curiosity β is the above no longer the case?
This is still true.
Wouldn't automatically recording time and using it as a timestamp if there's no timestamp detected in the input work?
Yes, this is what happens when -t
is used now.
from lnav.
Related Issues (20)
- Custom theme location does not seem to work? HOT 4
- Enable native Caddy JSON log file format HOT 2
- Can it be built without Rust, disabling related module? HOT 2
- Cursor mode selection does not select expected lines HOT 1
- Feature request: hide/show "discovered fields"
- Customizable hidden fields separate so you can replace vertical ellipsis
- support for multiple JSON line-formats and switching between them HOT 1
- Add time filters to the Filters configuration panel
- Timezone ignored if miliseconds is absent HOT 3
- highlight log content using data parser
- A line with three quotes crashes lnav HOT 1
- Globbing (* wildcard) stop working on macos in remote HOT 1
- With enable-word-wrap found matches are below the fold
- env_logger format is not detected HOT 2
- Esc key doesn't abort HOT 2
- Crash with a specific regex pattern
- Crash when regex without body is used HOT 2
- Regex exact match for filter possible? HOT 4
- Multiple failures if a timezone is not configured on a system or if tzdata not installed
- Apple silicone support (arm64) 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 lnav.