tailon
tailon copied to clipboard
Custom action using a pipe
I am trying to create a custom command to display a json log file. In order to display the way I want it to, I need to use a pipe. When I use a pipe I get no output. If I remove , "|", "jq", "-r", ".message"
from the action, it works, but shows more than I am looking for.
Is there a way to use a pipe in a custom action?
[commands."jq"] stdin = "tail" action = ["jq", "-r", ".msg", "|", "jq", "-r", ".message"]