Initial Commit

This commit is contained in:
2024-12-24 18:02:35 +01:00
commit 79438ff053
9 changed files with 5092 additions and 0 deletions

2
preprocess.nu Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/nu
open testdata.txt | grep Task | lines | parse -r 'celery_worker-(?<workerid>\d+?)\s+\|\s+\[(?<date>.*?) (?<time>.*?): (?<tag>.*?)\] Task (?<taskname>.*?)\[(?<taskid>.*?)\] (?<msg>.*?)\z' | insert msgtime {|row| $row.msg | parse -r '[a-zA-Z ]+(?<t>[\d.]*)s.*' | get -i 0.t} | update msg {|row| $row.msg | split words | get 0}