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

Feature update REq - Squid Logging Scheme #1507

Closed
gaurovsoni opened this issue Mar 26, 2017 · 3 comments
Closed

Feature update REq - Squid Logging Scheme #1507

gaurovsoni opened this issue Mar 26, 2017 · 3 comments
Assignees
Labels
feature Adding new functionality

Comments

@gaurovsoni
Copy link

Access.logs are Essential for finding user / ip / mac based reports .

Why Feature update is Needed for default squid access log :
1> logs generated are in UNIX time stamp format, Which are difficult for humans (normal user) to understand while creating a report.
2> IP based - ip can b changed , user & macc address are not basically (until not spoofed).

Bellow is a image better then default log format... user detail on 1 side. & other details on the right

screenshot from 2017-03-26 23-34-51

in order to achieve this i did a bit manipulation in :
/usr/local/opnsense/service/templates/OPNsense/Proxy/squid.conf
added line 329
modified line 330

screenshot from 2017-03-26 23-50-10

these changes remain persistent even after reboot, but not after update/upgrade i believe, therefore i jst made a request

future Suggestion :
1> One more thing i would like to suggest but since i dont know the working of php & falcon i cannot do it now, the Access.logs of one day in only shown, after 12:00am a new access.log file is generated completely empty. the old access.log of previous day containing logs get converted to .gz format. and in order to view old logs other than today i have to unzip the .gz files & find logs in them. and then search manually.
2> If we can export logs in PDF , html, .csv it will b much better.

@AdSchellevis
Copy link
Member

AdSchellevis commented Apr 5, 2017

I've added an option to enable "Extended" file logging (change "Log target").
abad6f9 contains the "combined" squid logging format, extended with the mac address.

@AdSchellevis AdSchellevis self-assigned this Apr 5, 2017
@AdSchellevis AdSchellevis added the feature Adding new functionality label Apr 5, 2017
@gaurovsoni
Copy link
Author

Thanks,
Currently i am creating a Reporting module(Plugin) for squid (proxy) which add up the following feature --
1> check logs according to date.
2> Export in PDF , CSV & TXT

I hope that u will live my work.

@fichtner
Copy link
Member

fichtner commented Apr 5, 2017

@gaurovsoni that sounds great. if you can create a PR in the plugins.git we can review and give input if you want :)

fichtner pushed a commit that referenced this issue Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new functionality
Development

No branches or pull requests

3 participants