-
-
Notifications
You must be signed in to change notification settings - Fork 111
-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to insert multi-line files #490
Comments
It should be possible to achieve this with the Given an example like this in
You should be able to run something like this:
After running this I get:
|
🤯 this is beautiful. Thanks @simonw ! |
For completeness, the regex requires a bit more dark magic to capture the following lines, here is a working expression: https://regex101.com/r/rsuEcs/1
|
Just saw your great write-up on this: https://jeqo.github.io/notes/2022-09-24-ingest-logs-sqlite/ |
I was looking into how to parse application log files that contain multiline text (e.g. Java stack traces) into sqlite.
I can see that at the moment
--lines
helps, but falls short when processing multi-line texts.I wonder if this functionality would be useful for sqlite-utils. A similar approach to Elastic logstash/filebeat can be adopted: https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html
Potential changes:
--multiline
optionOr if this is achievable in a different way, please share. Thanks!
The text was updated successfully, but these errors were encountered: