-
Hello, Is there a way to automatically set the partition (
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes, the event is triggered as the log messages are being processed, so they're not going to be available. Can I ask what you're trying to do? There might be a different way to accomplish what you want. |
Beta Was this translation helpful? Give feedback.
-
I have a log of an application that has a
That number indicates a 'run' of the application, so having a partition marker where they change is convenient to navigate/get an overview of the log file. I can run the body of the above SQL manually to create those partition markers, but I essentially always want to do it if I open a log file that matches that applications format. So it would be nice to be able to run it automatically. |
Beta Was this translation helpful? Give feedback.
Sorry, the partition functionality has been neglected for a bit. But, I've made some changes to the top-of-tree that should help to revive it. You can now add to a format a "partitions" section that can be used to automatically discover partitions in logs as they are indexed. Here are a couple of examples:
The following will create partitions for tests run by gtest:
lnav/src/formats/vmw_log.json
Lines 244 to 254 in 554f0e2
The following will create partition…