[go: up one dir, main page]

Activity for sarg

  • Bruno Bruno posted a comment on discussion Help

    Hi. While trying to build sarg-2.4.0 on a CentOS 8 and gcc-8.3.1 I'm getting the error below. Previously I would use the 'compat-gcc-34' package and it would build with no issues, but CentOS 8 doesn't provide it. index.c: In function ‘make_date_index’: index.c:622:43: error: ‘%04d’ directive output may be truncated writing 4 bytes into a region of size between 1 and 5 [-Werror=format-truncation=] snprintf(yearnum,sizeof(yearnum),"%04d-%04d",year>>10,year & 0x3FF); ^~~~ index.c:622:37: note: directive...

  • Francisco Javier Francisco Javier created ticket #41

    Patch that vinculates the username with a computer's IP when this connections aren't logged via Squid.

  • sarg sarg released /sarg/sarg-2.4.0/sarg-2.4.0.tar.gz

  • sarg sarg released /sarg/sarg-2.4.0/sarg-2.4.0.sha256sum

  • sarg sarg released /sarg/sarg-2.4.0/sarg-2.4.0.sha1sum

  • sarg sarg released /sarg/sarg-2.4.0/sarg-2.4.0.md5sum

  • Frederic Marchal Frederic Marchal committed [934210]

    Update PO files for translation.

  • Frederic Marchal Frederic Marchal committed [7e2939]

    Update version to 2.4.0-pre3.

  • Frederic Marchal Frederic Marchal committed [90603a]

    Enclose file name between double quotes in translated messages

  • Frederic Marchal Frederic Marchal committed [b05c09]

    Update ChangeLog

  • Frederic Marchal Frederic Marchal committed [269204]

    Update archive.sh script to check configure.ac instead of configure.in

  • Frederic Marchal Frederic Marchal committed [75c200]

    Fix path in checksum files

  • Frederic Marchal Frederic Marchal committed [87e2cc]

    Move some tar options after positional arguments when generating the archive

  • Frederic Marchal Frederic Marchal committed [734541]

    Update translations.

  • Frederic Marchal Frederic Marchal committed [06feaf]

    Update version number to 2.4.0.

  • sarg sarg released /sarg/sarg-2.4.0/sarg-2.4.0-pre3.sha256sum

  • sarg sarg released /sarg/sarg-2.4.0/sarg-2.4.0-pre3.sha1sum

  • sarg sarg released /sarg/sarg-2.4.0/sarg-2.4.0-pre3.md5sum

  • sarg sarg released /sarg/sarg-2.4.0/sarg-2.4.0-pre3.tar.gz

  • Frederic Marchal Frederic Marchal committed [8ec6d2]

    Avoid race condition when creating the temporary directory

  • Frederic Marchal Frederic Marchal committed [6490e1]

    Adjust buffer size to avoid possible buffer overflow warning from gcc

  • Frederic Marchal Frederic Marchal committed [ce5c3d]

    Add space between if and for and the opening parenthesis

  • Frederic Marchal Frederic Marchal committed [332f0c]

    Use unpredictable temporary directory name

  • Frederic Marchal Frederic Marchal committed [25b4e2]

    Add safety against possible buffer overflows reported by gcc

  • Frederic Marchal Frederic Marchal committed [611741]

    Fix syntax for const pointer to const data

  • Frederic Marchal Frederic Marchal committed [0bede2]

    When recursively creating a directory, make sure the path is a directory

  • Frederic Marchal Frederic Marchal posted a comment on discussion sarg

    If days were 48 hours long, I would use the extra time catching up with things to do at my day work :-) You are right, I have no use for sarg any more. My company's squid server was dismantled when a new guy was hired to manage the network about 10 years ago. He favored paid solutions over free ones. Any change I now make to sarg is tested against access.log files dating back from 2010. Html and e-mail reports are very different concepts in sarg. E-mail report is much smaller. It is not possible...

  • Majed Majed posted a comment on discussion sarg

    do you mean if the day would be 48 hours then you would have time for sarg? the answer is interests change and the desire fades..for some reason i was thinking it should be able to send an email and provide access to the website, anyway thanks, i was just ready to compile calmaris instead when i noticed your reply ..i'll make it up for your valuable solution

  • Frederic Marchal Frederic Marchal posted a comment on discussion sarg

    Sorry for the very long delay. I have almost no time to work on sarg any more. The output directory cannot be under the temporary directory because the temporary directory is deleted before sarg exits (unless -k is specified but even then, the output directory must be outside the temporary directory). In your first message, the output directory is set to the temporary directory because you asked for the report to be sent by e-mail. As the report is not meant to be kept, it is stored in the temporary...

  • Frederic Marchal Frederic Marchal committed [81ca15]

    Add some buffer overflow checking

  • Frederic Marchal Frederic Marchal committed [b4c7da]

    Fix code indentation

  • Frederic Marchal Frederic Marchal committed [58765c]

    Validate url passed to php scripts

  • Majed Majed posted a comment on discussion sarg

    when i set the output directory to /tmp/sarg i get: ~~~ sudo sarg -x -z SARG: Init SARG: Loading configuration from /usr/share/sarg/sarg.conf SARG: TAG: access_log /var/log/squid/access.log SARG: TAG: title "Squid User Access Reports" SARG: TAG: font_face Tahoma,Verdana,Arial SARG: TAG: temporary_dir /tmp SARG: TAG: output_dir /tmp/sarg SARG: TAG: output_email me@skto.by SARG: TAG: resolve_ip yes SARG: Chaining IP resolving module "dns" SARG: TAG: date_format e SARG: TAG: remove_temp_files yes SARG:...

  • Majed Majed posted a comment on discussion sarg

    Peace, i have been suffering all day to make this work.. here is the configuration: temporary_dir /tmp output_dir /srv/www/sarg squid-proxy:/srv/www/htdocs> sudo sarg -x -z SARG: Init SARG: Loading configuration from /usr/share/sarg/sarg.conf SARG: TAG: access_log /var/log/squid/access.log SARG: TAG: title "Squid User Access Reports" SARG: TAG: font_face Tahoma,Verdana,Arial SARG: TAG: temporary_dir /tmp SARG: TAG: output_dir /srv/www/sarg SARG: TAG: output_email me@skto.by SARG: TAG: resolve_ip...

  • Shoaib Farhan Shoaib Farhan posted a comment on discussion sarg

    Hello, I have install sarg in Debian 9. When i run it with sarg -x -z it is stuck at SARG: Reading access log file: /var/log/squid/access.log. sarg -x -z SARG: Init SARG: Loading configuration from /etc/sarg/sarg.conf SARG: TAG: access_log /var/log/squid/access.log SARG: TAG: title "Squid User Access Reports" SARG: TAG: font_face Tahoma,Verdana,Arial SARG: TAG: header_color darkblue SARG: TAG: header_bgcolor blanchedalmond SARG: TAG: font_size 9px SARG: TAG: background_color white SARG: TAG: text_color...

  • massimo parisi massimo parisi posted a comment on discussion sarg

    Ciao, anche a me crea il report dal primo giorno, come hai risolto?

  • Lucas Catani Lucas Catani posted a comment on discussion sarg

    It worked again without me doing anything. Probably the problem was the log generated by squid.

  • Lucas Catani Lucas Catani posted a comment on discussion sarg

    I use Sarg to generate reports for squid, but is not working properly. Configuration: Default The log period should be daily, but it is always creating from the first day. Dec24-2018-Dec31 The correct date is: Dec30-2018-Dec31 Dec29-2018-Dec30 Dec28-2018-Dec29 ... ... ... -- Lucas Catani L9WEB / Catani Equipamentos de Informática Bacharel em Ciência da Computação (54)99963-9063 lucascatani@gmail.com lucascatani@gmail.com

  • m. m. posted a comment on ticket #29

    Not sure if this request covers sarg-reports, but I think it would be sufficient to modify the "grep -v" expression to "grep -v -E" so that one could concatenate multiple regexps in EXCLUDELOGS[12] variable.

  • luciano luciano posted a comment on discussion sarg

    Good morning, does anyone know how to change the color of the "denied" option?

  • Fabio Sbano Fabio Sbano created ticket #30

    Custom date format

  • Arthur Moreira Arthur Moreira posted a comment on discussion sarg

    Hi, whats the files that i can to create before the index.html I need to add the line of my online css and add class for the table tag how to

  • Javier Polo Cózar Javier Polo Cózar posted a comment on discussion sarg

    Thank you very much Frederic for being so fast! For me it was easier follow your guide in the previous post and just copysarg.mo to /usr/share/locale/es/LC_MESSAGES for not overwritting config files of sarg and because I am using sarg from Ubuntu repositories, didnt compile it myself. And now it is working in spanish :-) I relized I have to do some small changes to my own .po file (just :-)

  • Frederic Marchal Frederic Marchal posted a comment on discussion sarg

    Preparing the release was faster than I expected. I think I got it mostly right :-). I upgraded gettext and released the files just now. Unfortunately, I have no server to test sarg any more (my employer dismantled the server back in 2014). So, I have no recent access.log to validate sarg.

  • Frederic Marchal Frederic Marchal created a blog post

    Sarg 2.3.11

  • sarg sarg released /sarg/sarg-2.3.11/sarg-2.3.11.sha256sum

  • sarg sarg released /sarg/sarg-2.3.11/sarg-2.3.11.sha1sum

  • sarg sarg released /sarg/sarg-2.3.11/sarg-2.3.11.md5sum

  • sarg sarg released /sarg/sarg-2.3.11/sarg-2.3.11.tar.gz

  • Frederic Marchal Frederic Marchal posted a comment on discussion sarg

    Thank you Javier for your translation. Strangely, the Translation Project failed to inform me about its availability (and the availability of many more translations). I just updated the v23 branch in git. I'll prepare a new release for version 2.3.11 with the updated translations. It may take some time though as I have very little time for this and gettext seems to have changed since I last used it. It complains about a missing /usr/bin/gmsgfmt file about which I can't find any information... In...

  • Frederic Marchal Frederic Marchal committed [af0b74]

    Update translations from Translation Project.

  • Javier Polo Cózar Javier Polo Cózar posted a comment on discussion sarg

    Hi Fréderic As Spanish translation is already done (by me laughs) could you let me know when you are planning to modify your sarg repository so we can use it ? I guess you must modify some php files and add .mo and.po files. I can be beta tester as I did translation :-)

  • Javier Polo Cózar Javier Polo Cózar posted a comment on discussion sarg

    Thank you very much Frederic! I am already in touch with Spanish team leader and waiting for approval to join Spanish translation team. I've already done translation but I am waiting for being a member of team and be assigned to sarg translation, so I can be able to send my .po file to robot to check it and validate it by other members of team. Until now I cant do it as I am not a member, they are rejected. I hope soon you will get Spanish translation. Once done I think you must upload a new version...

  • Frederic Marchal Frederic Marchal posted a comment on discussion sarg

    Starting to translate a pot file is quite simple actually. I recommend to download sarg-2.3.10.pot from the Translation Project's web site: http://translationproject.org/POT-files/sarg-2.3.10.pot I don't know where the link you mention comes from. The above link comes from the Translation Project where sarg's translation is hosted. Rename the file as sarg-2.3.10.es.po and adjust the header. For instance: # Spanish translation for sarg. # Copyright (C) 2017 Free Software Foundation, Inc. # This file...

  • Javier Polo Cózar Javier Polo Cózar posted a comment on discussion sarg

    Hello, I am very interested in Spanish translation for sarg and I dont see any assignement in http://translationproject.org/domain/sarg.html yet so I joined and sent an email to Spanish translator team, es@tp.org.es. Actually waiting for an answer. I think what I should do is getting pot file from http://ftp.tp.org.es/translationproject/POT-files/sarg-2.3.10.pot do the translation and then generate a po file (plain text, using a standard editor I guess) who would be set in http://ftp.tp.org.es/translationproject/PO-files/es/...

  • José Antônio Batista Júnior José Antônio Batista Júnior posted a comment on ticket #46

    Good Morning! OK thank you.

  • Frederic Marchal Frederic Marchal posted a comment on ticket #46

    None that I can see. Sorry. An average desktop computer sends a lot of requests. Some are unattended such as system updates, software updates and so on. Others are consequences of user requests (css, images, js, ads, iframe...). You might filter out urls to only keep html pages. I don't know how many false positive that list would contain. And then you would miss any audio, video or exe downloaded by typing the url directly into the browser address bar (such as a link clicked in a mail). So, as I...

  • José Antônio Batista Júnior José Antônio Batista Júnior posted a comment on ticket #46

    Hello. First of all, thank you. Is there an alternative?

  • Frederic Marchal Frederic Marchal posted a comment on ticket #46

    You can't. That information is not available in the log. Squid only sees requests coming from network connected devices. Network devices don't advertise the reason they fetch such or such url.

  • José Antônio Batista Júnior José Antônio Batista Júnior created ticket #46

    Sarg: Show only the url typed

  • Anton Bludov Anton Bludov posted a comment on ticket #171

    must be unsigned

  • Anton Bludov Anton Bludov posted a comment on ticket #171

    Still incorrect - port number is always positiive: must be "unsigned int" 2017-10-24 9:31 GMT+05:00 Frederic Marchal fmarchal@users.sf.net: status: open --> closed-fixed assigned_to: Frederic Marchal [bugs:#171] https://sourceforge.net/p/sarg/bugs/171/ Incorrect variable type* Status: closed-fixed Group: v1.0_(example) Created: Mon Oct 23, 2017 08:42 AM UTC by Anton Bludov Last Updated: Tue Oct 24, 2017 04:30 AM UTC Owner: Frederic Marchal In file util.c in line number 2116 variable port_num declared...

  • Frederic Marchal Frederic Marchal modified ticket #171

    Incorrect variable type

  • Frederic Marchal Frederic Marchal posted a comment on ticket #171

    It is now fixed in commit [2d5edf]. Thank you for reporting this bug.

  • Frederic Marchal Frederic Marchal committed [2d5edf]

    Use correct variable type

  • Anton Bludov Anton Bludov created ticket #171

    Incorrect variable type

  • Frederic Marchal Frederic Marchal posted a comment on ticket #29

    Can you achieve the requested result by redirecting the output to /dev/null: sarg [usual args] > /dev/null

  • Frederic Marchal Frederic Marchal posted a comment on discussion sarg

    If I run the following command: sarg --convert access.log.2017.08.20 It output this: 08/17/2017 22:15:01 0 10.1.1.2 TAG_NONE/400 3952 GET / - HIER_NONE/- text/html 08/17/2017 22:15:05 0 10.1.1.3 TCP_DENIED/403 4277 POST http://pasta.esfile.duapps.com/api/data? - HIER_NONE/- text/html 08/17/2017 22:15:05 0 10.1.1.3 TCP_DENIED/403 4191 POST http://pasta.esfile.duapps.com/api/tokens? - HIER_NONE/- text/html So, your excerpt contains entries from the 17th of Augustus, not the 20th of Augustus. If the...

  • dexterm dexterm posted a comment on discussion sarg

    I have a problem in generating daily report with sarg 2.3.10 on CentOS 7 which act as the Squid's Log Server. I always get "No records found" messages although the size of zip file of the Squid Log is not zero. Can you help me to figure out this issue? Here the debug message when I generate report: [root@sarg ~]# sarg -z -l /opt/squid_log/squid01/access.log.2017.08.20.gz -o /opt/sarg/squid-reports -d day-1 SARG: Init SARG: Loading configuration from /usr/local/etc/sarg.conf SARG: TAG: graph_font...

  • Matus UHLAR - fantomas Matus UHLAR - fantomas created ticket #29

    avoid unnecessary log lines

  • baykard baykard modified a comment on discussion sarg

    old topic, but maybe people still get the same error. I choose to disabled resolve_ip parameters to avoid error in name resolution (getnameinfo) - Temporary failure in name resolution just set resolve_ip no in /etc/sarg/sarg.conf

  • baykard baykard modified a comment on discussion sarg

    old topic, but maybe people still get the same error. I choose to disabled resolve_ip parameters to avoid error in name resolution (getnameinfo) - Temporary failure in name resolution just set resolve_ip no in /etc/sarg/sarg.conf

  • baykard baykard posted a comment on discussion sarg

    old topic, but maybe people still get the same error. I choose to disabled resolve_ip parameters to avoid error in name resolution (getnameinfo) - Temporary failure in name resolution resolve_ip no

  • William Della Noce William Della Noce created ticket #45

    Can't disable site_user_time_date report on version 2.3.10

  • Frederic Marchal Frederic Marchal posted a comment on discussion sarg

    Temporary files seem to vanish while sarg is creating the report. Do you have a cron job to purge /tmp? Files are usually purged during boot but, on servers that are never rebooted, people install other solution to clean /tmp without rebooting. If this is the case, try to store the temporary files in another directory. You could use, for instance, /var/tmp.

  • Frank Maia Frank Maia posted a comment on discussion sarg

    Hi Guys, I am using SARG 2.3.10 and I have come across a problem that is as follows: I can see everything up to the main page where it shows the FILE / PERIOD CREATION DATE and the other fields but most of the time when i click on the link with the daily resport that shows me: Not Found The requested URL /sarg/08Jun2017-08Jun2017/index.html was not found on this server. And after hours trying to access it works, and then if it works there, when I go to click on the user id to see what he is navigating...

  • Frederic Marchal Frederic Marchal posted a comment on ticket #44

    Your version of gcc is a bit picky about sprintf. It assumes that "%02d-%02d", i.e. 5 characters + terminating zero, won't fit in a string buffer 10 bytes long. And the compiler might just be right sometimes :-). A proper fix requires to use snprintf and check that the buffer was big enough to format the string and handle the error if the buffer is too small. I have no time to do that right now. In the meantime, simply increase the buffer sizes until the compiler stops complaining. In your case,...

  • João Victor da Silva João Victor da Silva created ticket #44

    Sarg Make ERROR Slackware 14.2

  • Evgeniy Yakushev Evgeniy Yakushev posted a comment on ticket #165

    Thank you!

  • Frederic Marchal Frederic Marchal modified a wiki page

    Command line options

  • Frederic Marchal Frederic Marchal posted a comment on ticket #165

    Changing "-t 09:00-18:00" is very easy. It is available in commit [371bd6]. I just pushed it to git :-) I'll update the wiki page too. Merging "hours" and "-t" is much more tricky though.

  • Frederic Marchal Frederic Marchal committed [163cd7]

    command line option -t excludes end limit

  • Evgeniy Yakushev Evgeniy Yakushev posted a comment on ticket #165

    So it is not as simple as changing '<=' to '<'? :)

  • Frederic Marchal Frederic Marchal posted a comment on ticket #165

    "hours" and "-t" are, internally, very different things. The hourly report hiding excluded columns in one case and not in the other is the most prominent difference. That's what your screen captures show. The second difference is in the accepted arguments. "hours" accepts a list such as 8-12,13-17. Only hours, no minutes. "-t" takes only one time or a range. Minutes are mandatory here but lists are not allowed. I haven't figured out how to merge "hours" and "-t" without breaking compatibility. I...

  • Evgeniy Yakushev Evgeniy Yakushev posted a comment on ticket #165

    Yes, now it's okay! But I'd like to add something. 1) I've attached two screenshots. sarg-hour.png - how it was before and after the last commit. We see here only amount of traffic according to requested hours. sarg-t.png - basically the same report but the time range is requested in CLI by -t parameter. Here we see all hours. Maybe it would be right to represent both reports in the same way: either including every hour even though they are not requested, or only hours in a requested range? 2) As...

  • Frederic Marchal Frederic Marchal posted a comment on ticket #165

    I think this problem is now solved with commit [371bd6]. You are right. Command line option "-t" is very different from the "hours" configuration option. "-t" limits the reports to one hour (-t 10 for instance) or one range (-t 8-16 for instance). Any entry outside of the selected hours is ignored. It affects every report including --split and --convert. "hours" accepts a complex set of hours and ignores entries not in one of the listed hour. It doesn't change --split nor --convert. It affects the...

  • Frederic Marchal Frederic Marchal committed [371bd6]

    Rewrite hours and weekdays parameters management

  • Frederic Marchal Frederic Marchal modified ticket #170

    Rediector report is not affected by "-t" option

  • Evgeniy Yakushev Evgeniy Yakushev posted a comment on ticket #170

    Yes, it is fixed now. Thanks again!

  • Frederic Marchal Frederic Marchal posted a comment on ticket #170

    I believe I fixed this bug in git master branch. Dansguardian and user agent reports...

  • Frederic Marchal Frederic Marchal committed [82d7f0]

    Fix bug #170: logs filtered by -t

  • Evgeniy Yakushev Evgeniy Yakushev created ticket #170

    Rediector report is not affected by "-t" option

  • Evgeniy Yakushev Evgeniy Yakushev modified a wiki page

    Command line options

  • Frederic Marchal Frederic Marchal posted a comment on ticket #43

    You are right, that option can read uncompressed Rejik log. But I just committed...

  • Frederic Marchal Frederic Marchal committed [c39408]

    Read compressed redirector logs.

  • Bunin Vladimir Bunin Vladimir posted a comment on ticket #43

    Frederic, thanks a lot for hint with days.

  • Bunin Vladimir Bunin Vladimir posted a comment on ticket #43

    I found the option for CLI -L FILE If you need redirector report, you can pass -L...

  • Frederic Marchal Frederic Marchal posted a comment on ticket #43

    In addition to what Evgeniy wrote, you may further simplify the script by replacing...

  • Frederic Marchal Frederic Marchal posted a comment on ticket #43

    Every entry from your sample file is taken into account in the report I generated...

  • Evgeniy Yakushev Evgeniy Yakushev posted a comment on ticket #43

    No, this cycle is not needed. You may just pass exec /usr/bin/sarg var/log/squid/access.log*...

<< < 1 2 >