Comments (4)
Is the following the exact command you're using?
:create-search-table mytable ^.*x=(?\d+)
That doesn't work for me, I get this error:
✘ error: “^.*x=(?\d+)” is not a valid regular expression
reason: unrecognized character after (? or (?-
--> pattern
| ^.*x=(?\d+)
| ^ unrecognized character after (? or (?-
--> command-option:1
| :create-search-table mytable ^.*x=(?\d+)
= help: :create-search-table table-name [pattern]
══════════════════════════════════════════════════════════════════════
Create an SQL table based on a regex search
Using this command works for me:
:create-search-table mytable ^.*x=(?<val>\d+)
from lnav.
Your create-search-table command works for me, but even using that the next command doesn't work for me:
;select log_time, val from mytable
I'm using 0.12.1 now, and it still fails.
It also fails when I try something like ";select * from syslog_axon", which is my log file def. Yet I can see syslog_axon in the schema definition.
from lnav.
Can you run lnav with -d /tmp/lnav-debug.log
and send the resulting debug log. I'm not sure what is happening. Thanks and sorry for the trouble.
from lnav.
Attached is the debug log. I ran ";select host from syslog_axon"
I think in the log it starts here:
2024-05-29T12:01:39.529 I t0 command_executor.cc:312 Executing SQL: select host from syslog_axon 2024-05-29T12:01:39.529 E t0 sql_util.cc:552 (1) no such table: syslog_axon in "select host from syslog_axon" 2024-05-29T12:01:42.130 D t0 hotkeys.cc:169 executing key sequence x71: |lnav-pop-view ${keyseq}
Uploading lnav-debug.log…
from lnav.
Related Issues (20)
- Latest version crashes on Arch Linux HOT 22
- $schema attribute in format file not recognized by provided jsonschema HOT 2
- Temporary folder not recreated if gone for some reason HOT 1
- When printing timestamp the last 3 microsecond digits are always "0". HOT 2
- request a release for the static init issue fix HOT 3
- Wrap text along word boundaries with the command :enable-word-wrap
- Add the ability to add multiple :filter-expr HOT 2
- Add to HIST the ability to display the number of matches based on arbitrary patterns HOT 1
- Add support for 7z archives HOT 3
- Can't open files in /tmp HOT 2
- Hangs/freezes and uses 100% CPU with small log files. HOT 1
- An option to exclude files and directories implied by `-r` (recurse) option HOT 14
- Pretty print regression for json logs HOT 4
- stdin and adb logcat -v time issues HOT 3
- 0.12.2 "top" mode navigation is broken HOT 1
- Custom theme location does not seem to work? HOT 4
- Enable native Caddy JSON log file format HOT 1
- 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"
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.