Changing of syslog file path instead of /var/log directory


 
Thread Tools Search this Thread
Operating Systems Solaris Changing of syslog file path instead of /var/log directory
# 1  
Old 12-03-2010
Changing of syslog file path instead of /var/log directory

Hi

Please let me know how can we change the syslog file path from /var/log to /a directory in solaris

Regards
# 2  
Old 12-03-2010
syslog on Solaris is using /var/adm by default. To modify this behavior change it in /etc/syslog.conf
# 3  
Old 12-03-2010
Thanks for the reply.

I am suspecting the below line in the /etc/syslog.conf will change the specfic path of syslog file. Please confirm.

mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)


If suppose /a is the directory for syslog file then entry will be


mail.debug ifdef(`LOGHOST', /a/syslog, @loghost)




Then we have to restart the syslog service after making changes.

I have done the above activity but syslog file is not created in /a directory. It might be possible when there will be a log generated then it will created automatically. Could you tell me how to create a log into this file .

Regards
# 4  
Old 12-03-2010
First you have to check which host is the loghost. Do:
Code:
grep loghost /etc/hosts

If loghost is the same system you are making the changes on, then create the file that you want to log to, with:
Code:
touch /a/syslog

Then restart syslog daemon.
# 5  
Old 12-03-2010
Thanks a lot
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Convert Relative path to Absolute path, without changing directory to the file location.

Hello, I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies

2. Shell Programming and Scripting

Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog

I have been searching and reading about syslog. I would like to know how to Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog. tail -f /var/log/messages dblogger: msg_to_dbrow: no logtype using missing dblogger: msg_to_dbrow_str: val ==... (2 Replies)
Discussion started by: kenshinhimura
2 Replies

3. HP-UX

Unidentified File on /var Directory

Hi All, I'm having problem with /var directory which is keep increasing. Here's the output of bdf and du command # uname -a HP-UX rppmis1 B.11.11 U 9000/800 1153414645 unlimited-user license # bdf /var Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol8 ... (8 Replies)
Discussion started by: stu33
8 Replies

4. Solaris

Understanding /var/log/syslog.* logfiles solaris 8

hi guys, This is a log from a Solaris 8 server /var/log/syslog.* file. Can any body please confirm whether the meaning of the last two words (Mail accepted) means the mail has been delivered? Because the email id the mail was sent to is invalid. :confused: The log is: Feb 18 08:55:45... (2 Replies)
Discussion started by: raj_55555
2 Replies

5. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

6. Shell Programming and Scripting

Retrieve directory path from full file path through sh

Hi, I have a file abcd.txt which has contents in the form of full path file names i.e. $home> vi abcd.txt /a/b/c/r1.txt /q/w/e/r2.txt /z/x/c/r3.txt Now I want to retrieve only the directory path name for each row i.e /a/b/c/ /q/w/e/ How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies

7. Solaris

/var/log/syslog

Hi, Solaris : 9 I noticed /var/log/syslog message file growing fast in abnormal way since 4 or 5 days. due to this my root / filesystem is getting filled with 100% . root $ls -ltr total 4683730 -rwxrwxrwx 1 root sys 0 Oct 17 2005 authlog -rwxrwxrwx 1 root ... (17 Replies)
Discussion started by: maooah
17 Replies

8. Shell Programming and Scripting

Executing Commands From Non-Standard Path (Changing user's PATH secretely???)

Hi: I have a requirement as below: I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l). When any user logs on and types... (2 Replies)
Discussion started by: ramesh_samane
2 Replies

9. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

10. UNIX for Dummies Questions & Answers

Unix Swap File in /var directory

Thank you 98_1LE.... Please help required urgently... We are getting error message in SUN... Please give solution ERROR MESSAGE: NOTICE: alloc: /var: file system full Output of command "df -k" in our system is... Filesystem kbytes used avail capacity Mounted on... (1 Reply)
Discussion started by: wipro fluid power
1 Replies
Login or Register to Ask a Question