Dynamic log grep example

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2020-01-27 16:31:49 +01:00
parent 66942c4c88
commit 3f7b4782ea
3 changed files with 25 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
kapow route add /apache-logs - <<-'EOF'
cat /var/log/apache2/access.log | grep -- "$(kapow get /request/params/pattern)" | kapow set /response/body
EOF