Comments (3)
I tried this way
find . -name "*.json.gz" -exec gunzip -c {} \; | jq -c '.[]' | docker run --interactive --rm --env LANG=$LANG allinurl/goaccess --date-spec=hr --real-os --agent-list --output html --log-format=--log-format='{"http_method": "%m", "request": "%U", "protocol": "%H", "response_code": "%s","referrer": "%R", "user_agent": "%u", "request_time": "%T"}' --date-format=%d/%b/%Y --time-format=%T - > report.html
This throws error:
[SETTING UP STORAGE -] {0} @ {0/s}
==1== GoAccess - version 1.7.2 - Apr 1 2023 00:44:06
==1== Config file: /etc/goaccess/goaccess.conf
==1== https://goaccess.io - [email protected]
==1== Released under the MIT License.
==1==
==1== FILE: -
==1== Parsed 10 lines producing the following errors:
==1==
==1== Token '+0000' doesn't match specifier '%m'
==1== Token '+0000' doesn't match specifier '%m'
==1== Token '+0000' doesn't match specifier '%m'
==1== Token '+0000' doesn't match specifier '%m'
==1== Token '+0000' doesn't match specifier '%m'
==1== Token '+0000' doesn't match specifier '%m'
==1== Token '+0000' doesn't match specifier '%m'
==1== Token '+0000' doesn't match specifier '%m'
==1== Token 'tRNHFlSkFyZzJoaGN2WVh6OVpXb0lnRWgvbHF0Sk54b2ZZMnQ4bWc5TER1UVhEcFgwU09DbW9tL2Jka0Mzb1JVUE5SditKVjdhS0VGaG5DODV6ZVdxcVMvWlZqcjJoZnFiT1c2TDFaaU9CNnVuRHc4eFRMZTZOWWNXWGxVT0ZkMGg0Zm54MzUyTjNoVWs2aEloOC9pVVkrUDc4QXhSTTRlTjRPYTdHdz09; _ga=GA1.2.925074475.1683821571; OptanonConsent=isGpcEnabled=0&datestamp=Mon+Oct+23+2023+15%3A59%3A20+GMT-0500+(Central+Daylight+Time)&version=202304.1.0&isIABGlobal=false&hosts=&consentId=66d79815-5717-4889-bb8f-cb19388de7da&interactionCount=1&landingPath=NotLandingPage&groups=C0001%3A1%2CC0002%3A1%2CC0003%3A1%2CC0004%3A1&AwaitingReconsent=false&geolocation=US%3BNE&browserGpcFlag=0; _ga_YGG4CDX0K1=GS1.1.1698094748.1.1.1698094760.48.0.0; AWSALB=FmgAA5D5n7cWCl5ANeBQmwMQ7L4/kMJCLHnB/ofh/m7nBLdln+1f1Onq024Q0Le9z3cpmYbe0XhrYQ0/bdGug1QlTsh30I8yMMaLFkcfVg2csIRaE/K2z2gMQc9F; AWSALBCORS=FmgAA5D5n7cWCl5ANeBQmwMQ7L4/kMJCLHnB/ofh/m7nBLdln+1f1Onq024Q0Le9z3cpmYbe0XhrYQ0/bdGug1QlTsh30I8yMMaLFkcfVg2csIRaE/K2z2gMQc9F' doesn't match specifier '%m'
==1== Token '+0000' doesn't match specifier '%m'
==1==
==1== Format Errors - Verify your log/date/time format
any pointers here pls? It seem date time format is invalid?
from goaccess.
I was able to resolve with some workarounds -
- First I need to convert JSON multiline formatted log file to file with json payload in single lines vs multiline.
- Then I used below log format to analyse the log-
--log-format='{"time": "%d:%t %^", "source_ip": "%h", "source_port": "%e", "destination_ip": "%h", "destination_port": "%e", "protocol": "%e", "http_method": "%m", "request": "%U", "response_code": "%s","referrer": "%R", "user_agent": "%u", "request_time": "%T"}' --date-format=%d/%b/%Y --time-format=%T
from goaccess.
Great to hear it's up and running! By the way, just a heads up, GoAccess doesn't support JSON multiline entries. If you run into any more snags, don't hesitate to drop a few lines from your log here, and I'll give it a peek. For now, let's consider this one closed
from goaccess.
Related Issues (20)
- [Question] How to filter crawlers/spiders from the unique visitors per day count ? HOT 3
- GoAccess Parsing Log File HOT 1
- Tables after the first fail to render properly HOT 5
- goaccess-close-visitors HOT 9
- STATIC REQUESTS panel shows files despite no static-files defined HOT 3
- Token doesn't match specifier '%h' HOT 1
- Token doesn't match specifier '%h' HOT 1
- Help with log/date/time format? HOT 2
- Can't see tables on mobile device? HOT 2
- Real time stopped working HOT 6
- Parse SEARCH method HOT 1
- HTML real-time report can't be loaded due to insecure WebSocket connection HOT 1
- Token '[02/Nov/2023' doesn't match specifier '%d' HOT 6
- Another problem with "specifier '%d'" HOT 7
- Minor issue with CTRL-C in Quick Help dialog HOT 4
- Diffrent-reports-analysis HOT 3
- ==7964== Token '11' doesn't match specifier '%d' ==7964== ==7964== Format Errors - Verify your log/date/time format HOT 2
- help me get 【log-format】 rule HOT 3
- RSS feed for GoAccess website updates/releases HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goaccess.