Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoAccess not showing 'Tx.' Amount #2760

Open
pjgerardo opened this issue Nov 21, 2024 · 1 comment
Open

GoAccess not showing 'Tx.' Amount #2760

pjgerardo opened this issue Nov 21, 2024 · 1 comment

Comments

@pjgerardo
Copy link

pjgerardo commented Nov 21, 2024

Hi all

I'm testing GoAccess to read Wasabi bucket logs that supposedly are equal to AWS S3 logs so I'm using the "--log-format awss3" option. Everything works great, but the one thing missing is the bandwidth amount the actual data I want to check 😄

Is there anything specific I should check as to why it won't show the bandwidth?

Here are a few example lines:

Record format: [BucketOwner Bucket Time RemoteIP Requester RequestId Operation Key Request-URI HttpStatus ErrorCode BytesSent ObjectSize TotalTime Turn-Around
546858E6E300000000000000000000000000000000000000000000000000DC170 bucket-name [06/Aug/2024:16:37:48 +0000] 109.50.101.102 546858E6E300000000000000000000000000000000000000000000000000DC170 BE95910000C4743B:A REST.HEAD.OBJECT preseed%2Fubuntu.seed "HEAD /preseed/ubuntu.seed" 404 NoSuchKey - 0 6 0 "" "MSP360/Wasabi Explorer/6.2.2" -
546858E6E300000000000000000000000000000000000000000000000000DC170 bucket-name [06/Aug/2024:16:37:48 +0000] 109.50.101.102 546858E6E300000000000000000000000000000000000000000000000000DC170 78DF800008286EE7:A REST.HEAD.OBJECT EFI%2Fboot%2Fbootx64.efi "HEAD /EFI/boot/bootx64.efi" 404 NoSuchKey - 0 4 4 "" "MSP360/Wasabi Explorer/6.2.2" -
546858E6E300000000000000000000000000000000000000000000000000DC170 bucket-name [06/Aug/2024:16:37:48 +0000] 109.50.101.102 546858E6E300000000000000000000000000000000000000000000000000DC170 1F45D000085389F8:A REST.PUT.OBJECT preseed%2Fubuntu.seed "PUT /preseed/ubuntu.seed" 200 - - 460 109 0 "" "MSP360/Wasabi Explorer/6.2.2" -
546858E6E300000000000000000000000000000000000000000000000000DC170 bucket-name [06/Aug/2024:16:37:49 +0000] 109.50.101.102 546858E6E300000000000000000000000000000000000000000000000000DC170 FBCCB00003E9E20E:A REST.HEAD.OBJECT boot%2Fgrub%2Fx86_64-efi%2Fadler32.mod "HEAD /boot/grub/x86_64-efi/adler32.mod" 404 NoSuchKey - 0 3 0 "" "MSP360/Wasabi Explorer/6.2.2" -
546858E6E300000000000000000000000000000000000000000000000000DC170 bucket-name [06/Aug/2024:16:37:49 +0000] 109.50.101.102 546858E6E300000000000000000000000000000000000000000000000000DC170 71D310000F00E8B2:A REST.PUT.OBJECT boot%2Fgrub%2Fx86_64-efi%2Fadler32.mod "PUT /boot/grub/x86_64-efi/adler32.mod" 200 - - 1952 68 30 "" "MSP360/Wasabi Explorer/6.2.2" -
@allinurl
Copy link
Owner

So, is BytesSent equivalent to 'bandwidth'? It looks like they’re all showing as 0 in that sample log.

This should do it (assumes certain fields, e.g., TotalTime).

goaccess access.log --log-format='%^ %v [%d:%t %^] %h %^"%m %U" %s %e %b %^ %L %^"%^" "%u"' --date-format=%d/%b/%Y --time-format=%T --http-protocol=no

If it's the objectsize, you could try:

goaccess access.log --log-format='%^ %v [%d:%t %^] %h %^"%m %U" %s %e %^ %b %L %^"%^" "%u"' --date-format=%d/%b/%Y --time-format=%T --http-protocol=no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants