Skip to content

Instantly share code, notes, and snippets.

@feilongfl
Created December 27, 2018 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feilongfl/4fe950b241cd25cf8975688ef743155a to your computer and use it in GitHub Desktop.
Save feilongfl/4fe950b241cd25cf8975688ef743155a to your computer and use it in GitHub Desktop.
#!/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