Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tstack
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
91.
▲
by
tstack
5y ago
I'll add this timestamp to the set of defaults for the final v0.10.0 version later today. The documentation for the format files is here: https://docs.lnav.org/en/latest/formats.html The "timestamp-forma
92.
▲
by
tstack
5y ago
Timezones are not automatically handled by lnav at the moment, which isn't great. Timestamps are parsed and treated as UTC internally, which usually works out fine. You can manually adjust all of the timestamps for a file using the &
93.
▲
by
tstack
5y ago
Yes, Log Parser was the inspiration for that feature in lnav. That's why the column names are basically same between the two (e.g. c_ip, cs_uri_stem).
94.
▲
by
tstack
5y ago
Sorry to plug lnav again, but if the data volume is not "too much"[1], the latest version of lnav has support for tailing files on remote hosts that are accessible via ssh: https://lnav.org/2021/05/03
95.
▲
by
tstack
5y ago
If you're tailing logs, can I suggest that you try out the Logfile Navigator ( https://lnav.org ). It really is possible to do better than tail/less/whatever when you just want to look at a local log file: https:&
96.
▲
by
tstack
5y ago
I’m planning to use it in my terminal-based log file viewer ( https://lnav.org ) to deploy an agent (over ssh) to remote machines to monitor their log files. CosmoC allows me to build a single agent binary that will work on lots
97.
▲
by
tstack
5y ago
Check out the Netflix animated series as well, it’s quite charming. Note that there are graphic novels as well as chapter books based on the Netflix version of the stories.
98.
▲
by
tstack
5y ago
I wrote a log file viewer ( https://lnav.org ) to help me debug the software I was working on at the time (2006). This software generated multiple log files and I got tired of manually collating messages to figure out what went w
99.
▲
by
tstack
5y ago
FYI, the Logfile Navigator ( https://lnav.org ) can display gzipped/bzipped files on the fly. The top-of-tree has new support for automatically unpacking archives to a temporary directory using libarchive and displaying the
100.
▲
by
tstack
6y ago
lnav[0] can take care of parsing the log files and displaying them in a TUI. There's also a SQLite interface for doing queries. However, you'll need to build the filters/queries yourself, there aren't any built-in ones
101.
▲
by
tstack
6y ago
> very few places AFAIK actually process their HTTP server logs into a form that can be queried by SQL. There are at least two tools that support directly querying log files with SQL: * logparser -- https://en.wikipedia.org&#x
102.
▲
by
tstack
6y ago
> Personally, I find coding challenges fun and even quite enjoyable at times, so I don’t see why it’s a waste of time to get good at them. You really can't imagine that someone feels differently? Please try to have a more open mind
103.
▲
by
tstack
6y ago
Slightly off topic... but, if you're interested in console logging tools, have you looked into https://lnav.org or https://github.com/rcoh/angle-grinder/ ?
104.
▲
by
tstack
6y ago
For the Logfile Navigator ( https://lnav.org ), I implemented a tool[0] to record console input/output and then replay the input while verifying the output. It basically works, but needs some usability improvement. For exam
105.
▲
by
tstack
6y ago
Uh... what? The comment I replied to argued that a random employee might understand why a particular bolt was chosen. The walkway collapse is literally about bolts/nuts being changed around. That design change by a third party resul
106.
▲
by
tstack
6y ago
> But you still assume that the employee isn't smart enough to know why bolts are different sizes and whether a bigger bolt could work in the place of the smaller bolts. It sounds like you are not familiar with this disaster: https
107.
▲
by
tstack
6y ago
For reference, a 435MB web access log with about 3 million lines takes: * lnav about 4 seconds to index[1] and display * vim about a second to display * emacs about 3 seconds to display This is on a late 2013 27-inch iMac with a 3.5Ghz i7 a
108.
▲
by
tstack
6y ago
Try the Log File Navigator ( http://lnav.org ). It works directly with log files. Can understand many log formats by default and be customized. The log messages from separate files are collated into a single view where highligh
109.
▲
by
tstack
6y ago
> This is why I love this question as a phone-screener for onsite interviews and stuff. Same here and I'm confused as to why this comment has been downvoted. It's a perfectly good question for level setting. You get an idea o
110.
▲
by
tstack
8y ago
I built lnav ( https://lnav.org ) to help dig through the log files of the product I was working on at the time. I grew tired of having to manually interleave log messages from multiple files, so I created lnav to do the work for
111.
▲
by
tstack
9y ago
JSON-formatted log files can be pretty-printed by tools like the Logfile Navigator: http://lnav.org That should make the decision a lot easier.
112.
▲
by
tstack
10y ago
Parsing time is a huge cost when the Logfile Navigator ( http://lnav.org ) is parsing log files. The libc strptime() is terribly slow, so I wrote a simple compiler[1] that would spit out inlined C++ code for parsing a particular
113.
▲
by
tstack
10y ago
Give lnav ( http://lnav.org ) a try, it's a powerful tool for analyzing log files using a terminal.
114.
▲
by
tstack
11y ago
Where does lnav fall short in this case? As the author of it, I'd like to know so that I can give you some tips or try to fill in the gaps.
115.
▲
by
tstack
11y ago
Can you elaborate on "extra power"? A c++ constructor/destructor pair is equivalent to __enter__ and __exit__. I fail to see how this grants a significant amount of power. There's certainly differences, but the gap is
116.
▲
by
tstack
11y ago
Python has context managers, which were added for exactly this purpose. with alloc_resource() as resource: resource.use()
117.
▲
by
tstack
11y ago
You can pipe into lnav like you can with less/more: make |& lnav The '-t' option will prepend timestamps to the lines that are coming in on stdin so that it will be treated as a log file. The '-w <file>
118.
▲
by
tstack
11y ago
There are Debian ( https://packages.debian.org/sid/admin/lnav ) and Ubuntu ( http://packages.ubuntu.com/trusty/admin/lnav ) packages available from other maintainers. I use the RPM at my da
119.
▲
by
tstack
11y ago
Oops, I disabled this, sorry for the confusion.
120.
▲
by
tstack
11y ago
Yes, log messages from different files are interleaved based on their timestamps.
More ›