Replies: 1 comment 4 replies
-
It looks like you're doing a query on the Another option would be to use search tables where you define a regex that extracts the data you're interested in. If you're concerned about how reliable the It really kinda depends on what types of messages are in the logs. Would you be able to supply some more samples? |
Beta Was this translation helpful? Give feedback.
-
I seem to be running into a problem with my formats. I have a defined format (see below) for a log file. However, the results are missing information when I run an SQL command. My goal is to be able to use lnav to gather the logs and use SQL command to grab the logs from a time frame to then parse in a separate program. I need the SQL results to have all the information from the body shown in log_msg_format. This is just one example; other lines are also missing information. Any help would be greatly appreciated.
lnav 0.10.1-dirty
What is printed: #: Load=# Idle=#
What I would like:[A]Current Usage Stats: Load=2.35 Idle=67.64
For example:
SQL result: - 87│ │2022-08-20 14:21:29.855│ 180│info │ 0│ │ │ │ttmenu_log│#: Load=# Idle=#
The full line from the log:
2022/08/20 14:21:29:855 [A]Current Usage Stats: Load=2.35 Idle=67.64
Log Format file(partial view, there are more samples in the original file):
Beta Was this translation helpful? Give feedback.
All reactions