-
-
Notifications
You must be signed in to change notification settings - Fork 28
Example: Loki
Lorenzo Mangani edited this page Dec 30, 2018
·
17 revisions
paStash can be used to easily ship logs to Grafana Loki or cLoki
Install paStash next-gen and the Loki output plugin globally using npm:
# npm install -g @pastash/pastash @pastash/output_loki
In this super simple recipe we'll use the file input and loki output & save (path/to/pastash_loki.json)
input {
file {
path => "/var/log/auth.log"
}
}
output {
loki {
host => localhost
port => 3100
path => "/api/prom/push"
}
}
./bin/pastash --config_file=/path/to/pastash_loki.json