Change Log Path for Squid on Centos 6


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Change Log Path for Squid on Centos 6
# 1  
Old 08-23-2012
Change Log Path for Squid on Centos 6

I searched and did not find a useful answer. Can someone please tell me the best practice to change the log directory from /var/log to /opt/squid?
# 2  
Old 08-23-2012
Code:
$ grep "/var/" /etc/squid/squid.conf

# cache_dir ufs /var/cache/squid 100 16 256
access_log /var/log/squid/access.log squid
# cache_log /var/log/squid/cache.log
# cache_store_log /var/log/squid/store.log
# pid_filename /var/run/squid.pid
coredump_dir /var/cache/squid

$

# 3  
Old 08-23-2012
My Squid logs are all under /var/log/squid but I see no mention of that directory in /etc/squid/squid.conf.
# 4  
Old 08-23-2012
Which is why I posted the information from my squid.conf, which came with comments on every possible option, even the ones not set (in comments).

If those options aren't set in your conf file, set them. In their absence, they default to /var/log/squid...
# 5  
Old 08-27-2012
What do I do to move squid.out? That file seems to be different than the access.log and cache.log files.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Not able to setup CentOS 7 as gateway [Using squid proxy]

Hello, Did anyone setup a CentOS7 as a gateway (with squid transparent proxy). I am trying to do so but not able to setup. I setup squid , iptables (using it instead of firewalld) and all the necessary IPtables rules but nothing work. It work previously but access.log of squid not getting... (4 Replies)
Discussion started by: sunnysthakur
4 Replies

2. UNIX for Advanced & Expert Users

Issue setup Transparent proxy and Gateway using Squid on CentOS 7

Hello, We are migrating our gateways from CentOS 6 to CentOS 7 and for setting up a transparent proxy using squid and Firewalld i am using below configuration. #Firewalld configurations firewall-cmd --permanent --zone=public --add-forward-port=port=80:proto=tcp:toport=3128:toaddr=LAN_IP... (4 Replies)
Discussion started by: sunnysthakur
4 Replies

3. UNIX for Dummies Questions & Answers

Change default terminal compiler - Centos

I'm working on a centos 5.10 64bit desktop machine. I want to change the default terminal compiler to bash instead of csh/sh without root permissions. Thanks in advance (4 Replies)
Discussion started by: aelhosiny
4 Replies

4. Linux

How to deny facebook https using squid proxy in Centos 6.5?

Hi we have Centos Server and we have client machines using Ubuntu 12.04 and Win7,I Have Configured Squid only purposely for facebook denied, Cos User;s often being in fb so need to do it, have configured squid as transparent , followed this How to install squid proxy on centos 6 steps to did it and... (2 Replies)
Discussion started by: babinlonston
2 Replies

5. Linux

How to deny facebook https using squid proxy in Centos 6.5?

Hi we have Centos Server and we have client machines using Ubuntu 12.04 and Win7,I Have Configured Squid only purposely for facebook denied, Cos User;s often being in fb so need to do it, have configured squid as transpernt , followed this How to install squid proxy on centos 6 steps to did it and... (1 Reply)
Discussion started by: babinlonston
1 Replies

6. IP Networking

Squid vs iptables = no Squid access.log?

Hello, I have a pretty useless satellite link at home (far from any civilization), so I wanted to set up caching in order to speed things up. My Squid 2.6 runs "3128 transparent" and is set up quite well on a separate machine. I also have my dd-wrt router to move all port 80 traffic through... (0 Replies)
Discussion started by: theWojtek
0 Replies

7. Red Hat

selfservice password change standalone Centos 5.7

Hello, can someone suggest, how to configure server, when a new user that is created on the server centos 5.7, should be prompted to reset their password on his start login. Thanks, (1 Reply)
Discussion started by: bobby320
1 Replies

8. Red Hat

550 Failed to change directory from FireFTP to CentOS 5.7 VSFTPD

When trying to connect from Mozilla's FireFTP using anonymous or a FTP user on the CentOS 5.7, using VSFTPD I get the following error: 550 Failed to change directory.(View Attachment) This is what I have in my vsftpd.conf file: # Example config file /etc/vsftpd/vsftpd.conf # # The default... (1 Reply)
Discussion started by: jastanle84
1 Replies

9. Shell Programming and Scripting

How to change Absolute path to Relative path

Hello, I have a doubt:- --------------------- Current script:- ################################################################################################ prefix=user@my-server: find . -depth -type d -name .git -printf '%h\0' | while read -d "" path ; do ( cd "$path" || exit $?... (4 Replies)
Discussion started by: sahil_jammu
4 Replies

10. Shell Programming and Scripting

how can i change my PATH

1. that you are calling the POSIX UNIX commands located under /usr/xpg4/bin instead of those under /usr/bin 2. that you can run programs from the current directory 3. that your scripts located in the bin directory under your HOME directory can be found and executed from any... (1 Reply)
Discussion started by: vpatel44
1 Replies
Login or Register to Ask a Question