Skip to content

Instantly share code, notes, and snippets.

@NinnOgTonic
Created January 6, 2015 18:43
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 NinnOgTonic/ebaebb99d38cd143a088 to your computer and use it in GitHub Desktop.
Save NinnOgTonic/ebaebb99d38cd143a088 to your computer and use it in GitHub Desktop.
root@log:/tmp# cat blad2
d2be6d40c26db4c4d173be18ca28609f872456043692ce4d20270a92d0a8cff8 data.HOSTNAME.com [20/Dec/2014:21:00:08 +0000] 54.239.183.6 - FC0FF1DEB64FF1AC REST.GET.OBJECT 12/34/56/78/box1/blad.html "GET /12/34/56/78/box1/blad.html HTTP/1.1" 403 AccessDenied 243 - 11 - "-" "Amazon CloudFront" -
root@log:/tmp# cat prof2
color_scheme 0
date_format %d/%b/%Y
log_format %^ %^ [%d:%^] %h %^ %^ %^ %^ "%^ %r %^" %s %^ %b %^ %^ %^ "%^" "%u" %^
root@log:/tmp# goaccess -f blad2 -p prof2 -o json
GoAccess - version 0.8.5 - Jan 6 2015 11:58:09
Fatal error has occurred
Error occured at: src/goaccess.c - main - 958
Nothing valid to process.
root@log:/tmp# cat blad3
d2be6d40c26db4c4d173be18ca28609f872456043692ce4d20270a92d0a8cff8 data.HOSTNAME.com [20/Dec/2014:21:00:08 +0000] 54.239.183.6 - FC0FF1DEB64FF1AC REST.GET.OBJECT 12/34/56/78/box1/blad.html "GET /12/34/56/78/box1/blad.html HTTP/1.1" 403 AccessDenied 243 - 11 - "-" "Amazon CloudFront" -
root@log:/tmp# goaccess -f blad3 -p prof2 -o json
{
"general": {
"date_time": "2015-01-06 18:38:23",
"total_requests": 1,
"unique_visitors": 0,
"referrers": 0,
"log_size": 281,
"failed_requests": 0,
"unique_files": 1,
"unique_404": 0,
"bandwidth": 243,
"generation_time": 0,
"excluded_ip_hits": 0,
"static_files": 0,
"log_file": "blad3"
},
"visitors": [
],
"requests": [
{
"hits": "1",
"percent": "100.00%",
"data": "\/12\/34\/56\/78\/box1\/blad.html",
"bytes": "243"
}
],
"static_requests": [
],
"not_found": [
],
"hosts": [
{
"hits": "1",
"percent": "100.00%",
"data": "54.239.183.6",
"bytes": "243",
"country": "US United States"
}
]
,
"os": [
],
"browsers": [
],
"referrers": [
],
"referring_sites": [
],
"keyphrases": [
],
"geolocation": [
],
"status_codes": [
{
"hits": "1",
"percent": "100.00%",
"data": "4xx Client Error",
"items": [
{
"hits": "1",
"percent": "100.00%",
"data": "403 - Forbidden: Server is refusing to respond to it"
}
]
}
]
}
root@log:/tmp# cat blad4
d2be6d40c26db4c4d173be18ca28609f872456043692ce4d20270a92d0a8cff8 data.HOSTNAME.com [20/Dec/2014:21:00:08 +0000] 54.239.183.6 - FC0FF1DEB64FF1AC REST.GET.OBJECT 12/34/56/78/box1/blad.html "GET /12/34/56/78/box1/blad.html HTTP/1.1" 403 AccessDenied 243 - 11 - "-" "Amazon CloudFront" -
root@log:/tmp# goaccess -f blad4 -p prof2 -o json
{
"general": {
"date_time": "2015-01-06 18:38:48",
"total_requests": 1,
"unique_visitors": 0,
"referrers": 0,
"log_size": 283,
"failed_requests": 2,
"unique_files": 1,
"unique_404": 0,
"bandwidth": 243,
"generation_time": 0,
"excluded_ip_hits": 0,
"static_files": 0,
"log_file": "blad4"
},
"visitors": [
],
"requests": [
{
"hits": "1",
"percent": "100.00%",
"data": "\/12\/34\/56\/78\/box1\/blad.html",
"bytes": "243"
}
],
"static_requests": [
],
"not_found": [
],
"hosts": [
{
"hits": "1",
"percent": "100.00%",
"data": "54.239.183.6",
"bytes": "243",
"country": "US United States"
}
]
,
"os": [
],
"browsers": [
],
"referrers": [
],
"referring_sites": [
],
"keyphrases": [
],
"geolocation": [
],
"status_codes": [
{
"hits": "1",
"percent": "100.00%",
"data": "4xx Client Error",
"items": [
{
"hits": "1",
"percent": "100.00%",
"data": "403 - Forbidden: Server is refusing to respond to it"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment