Created
December 27, 2018 01:55
-
-
Save feilongfl/4fe950b241cd25cf8975688ef743155a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
# | |
rm /etc/netdata/python.d/web_log.conf | |
for f in (ls *_access.log); | |
echo $f; | |
echo "nginx_log: | |
name : '"$f"' | |
path : '"$f"' | |
" | tee -a /etc/netdata/python.d/web_log.conf; | |
end | |
systemctl restart netdata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment