goaccess: can't pipe awk to goaccess

Hi,

i’m trying to pipe awk command to goaccess but is not working

awk '$7~/\<api\>/' /var/log/nginx/access.log | goaccess

is anybody experience the same problem? or i’m doing something wrong?

thanks

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

@hmmatos I’ve pushed a commit that enables the ability to output live stats from a stream or an unclosed STDIN, i.e., tail -f as well as parsing multiple logs in live mode:

goaccess --log-format=COMBINED access.log access.log.1

or

tail -f access.log | goaccess --log-format=COMBINED -

or even

tail -f access.log | goaccess --log-format=COMBINED -o report.html --real-time-html -

It also opens the possibility for live data filtering from the pipe such as:

tail -f access.log | grep -i --line-buffered 'firefox' | goaccess --log-format=COMBINED -

Feel free to build from master to test this out, otherwise it will be pushed out in the upcoming release. Thanks.