Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
can't pipe awk to goaccess #498
Comments
hmmatos
changed the title from
can't parse awk to goaccess command
to
can't pipe awk to goaccess
Aug 23, 2016
sabin800
commented
Aug 23, 2016
|
I'm having the same issue, however I'm trying to "gunzip -c" a zipped apache log file and keep getting a goaccess specific error. Does goaccess not accept STDIN? |
vmanyushin
commented
Aug 24, 2016
|
try to comment log-file option in config file. |
hmmatos
commented
Aug 25, 2016
|
Hi @vmanyushin, if I comment the log-file in config file he pipe the awk but Break Out and the debug-file only says "bye" |
|
Can you please post the error message you are getting and if possible a few lines from your access log matching the pattern posted above? |
allinurl
added
the
question
label
Aug 25, 2016
hmmatos
commented
Aug 25, 2016
•
|
I don't get any error, please see the video below nginx log
|
|
@hmmatos what output do you get on the specified report file? i.e., |
|
@sabin800 can you please post the command you are running and the output from goaccess so I can take a look? Thanks |
hmmatos
commented
Aug 25, 2016
|
@allinurl what do you mean by the output report file? is a html file generated by goaccess. |
|
@hmmatos if I run it with the sample line you posted:
I get the correct html report. I'm not sure what issue is that you are having? |
hmmatos
commented
Aug 25, 2016
|
@allinurl I'm getting the same result, please see the video below is the log too large? |
|
Is the log too large? not at all. The command you are running should ouput an html file called report.html. However, what I see is that you are outputting a real-time report, while piping data in. Right now piping a log to GoAccess will disable the real-time functionality. This is part of issue #428. |
hmmatos
commented
Aug 26, 2016
|
@allinurl ok that's the problem. Thanks |
allinurl
closed this
Aug 26, 2016
|
@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:
or
or even
It also opens the possibility for live data filtering from the pipe such as:
Feel free to build from master to test this out, otherwise it will be pushed out in the upcoming release. Thanks. |
hmmatos
commented
Mar 2, 2017
|
@allinurl thanks for the commit i'll tested |
hmmatos commentedAug 23, 2016
•
Edited 1 time
-
hmmatos
Aug 23, 2016
Hi,
i'm trying to pipe awk command to goaccess but is not working
awk '$7~/\<api\>/' /var/log/nginx/access.log | goaccessis anybody experience the same problem? or i'm doing something wrong?
thanks