-
-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
I'm trying this, but it doesn't seem to write anything to the database file until I hit CTRL+C
:
heroku logs --app=simonwillisonblog --tail | grep 'measure#nginx.service' | \
sqlite-utils insert /tmp/herokutail.db log - --import re --convert "$(cat <<EOD
r = re.compile(r'([^\s=]+)=(?:"(.*?)"|(\S+))')
pairs = {}
for key, value1, value2 in r.findall(line):
pairs[key] = value1 or value2
return pairs
EOD
)" --lines --batch-size 1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working