Sponsored Content
Top Forums Shell Programming and Scripting Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog Post 302997146 by kenshinhimura on Monday 8th of May 2017 01:33:58 PM
Old 05-08-2017
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.

Code:
tail -f /var/log/messages


dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL
dblogger: msg_to_dbrow: no logtype using missing
dblogger: msg_to_dbrow_str: val == NULL

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/var/log/messages

Which programm, deamon or script is responsible for filling the file /var/log/messages ? (1 Reply)
Discussion started by: Cozmic
1 Replies

2. UNIX for Dummies Questions & Answers

help interpreting var/log/messages log

I'm using RHEL and my var/log/messages file is filled with "FTP session opened/closed" lines that happen all day: Aug 2 04:04:38 web proftpd: 74.125.56.10 (142.231.76.249) - FTP session closed. Aug 2 04:05:11 web proftpd: 74.125.56.10 (142.231.88.123) - FTP session opened.Is this normal? We... (2 Replies)
Discussion started by: gaspol
2 Replies

3. 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

4. UNIX for Advanced & Expert Users

/var/adm/messages vs /var/log/messages

The /var/adm/messages in Solaris seem to log more system messages/errors compared to /var/log/messages in Linux. I checked the log level in Linux and they seem OK. Is there any other log file that contains the messages or is it just that Linux doesn't log great many things? (2 Replies)
Discussion started by: gomes1333
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

How can view log messages between two time frame from /var/log/message or any type of log files

How can view log messages between two time frame from /var/log/message or any type of log files. when logfiles are very big and especially many messages with in few minutes, I would like to display log messages between 5 minute interval. Could you pls give me the command? (1 Reply)
Discussion started by: johnveslin
1 Replies

7. UNIX for Advanced & Expert Users

Controlling /var/log/messages

The /var/log/messages folder grows exponentially - in 3 hours it went up from 70 K to 6GB. I have an application and it keeps writing such logs at very high speed. Which of the following feature has to be disabled? The entry in syslog.config is shown below ... (1 Reply)
Discussion started by: nathan_nathan
1 Replies

8. UNIX for Dummies Questions & Answers

Need to transfer all kernel logs (var/log/messages) to the snmp listener as snmp trap

i am working with embedded system -Dell DCS management sub system. my question is as below: currently we are using linux kernel 2.6.30 build and we have a kernel logs stored to the /var/log/messages path. now we have to transfer all this logs to the specified SNMP target as a part of SNMP... (4 Replies)
Discussion started by: vipul_prajapati
4 Replies

9. Shell Programming and Scripting

Log all the commands input by user at real time in /var/log/messages

Below is my script to log all the command input by any user to /var/log/messages. But I cant achieve the desired output that i want. PLease see below. function log2syslog { declare COMMAND COMMAND=$(fc -ln -0) logger -p local1.notice -t bash -i -- "$USER:$COMMAND" } trap... (12 Replies)
Discussion started by: invinzin21
12 Replies

10. Red Hat

Meaning of /var/log/messages

I am getting a lot of message as follows in /var/log/message files as follows. messages.1:559:May 4 20:01:56 SERVER2 kernel: session_stat: sync=0 async=33 aretr=0 messages.1:560:May 4 20:02:42 SERVER2 kernel: session_stat: dev=fd:5 state=6 blksize=4096 mmapsize=262144 messages.1:561:May 4... (2 Replies)
Discussion started by: Anjan Ganguly
2 Replies
rsvpd(8)						      System Manager's Manual							  rsvpd(8)

NAME
rsvpd - Resource ReSerVation Protocol (RSVP) daemon SYNOPSIS
/usr/sbin/rsvpd [-h] [-d level] [-p] [-l logfile] [-i [version]] OPTIONS
Prints the rsvpd help and exits. Enables debug mode. The debug level is either all (the default) or a bitmask that specifies a combina- tion of the following values: 0x01 (SYSTEM) 0x02 (TMR) 0x04 (API) 0x08 (MSGS) 0x10 (TCNTL) 0x20 (SESS) 0x40 (ROUTE) Forces rsvpd to stay attached to the terminal and print error and debug information to stderr instead of the log file. Specifies an alternative log file. By default, the log file is /var/rsvp/rsvpd_dbg.log. Specifies a list of Internet Protocol (IP) version numbers. Possible values are 4, 6, or 46. DESCRIPTION
The rsvpd daemon is the RSVP daemon that starts automatically at boot time. Upon startup, rsvpd performs the following actions: Writes its PID to the /var/run/rsvpd.pid file. Detects all existing interfaces on the system. Detaches from the terminal unless the -p option is specified. Creates the /var/rsvp directory, if it does not exist. The rsvpd daemon logs startup, stop, and error messages through the syslog function to the /usr/var/adm/syslog.dated/date/daemon.log log file. If you specify the -d option, rsvpd logs error messages and debugging output to the /var/rsvp/rsvpd_dbg.log log file or to a log file specified with the -l logfile option. If you want rsvpd to start automatically at system boot time, place an entry for it in the /etc/inet.local file. For example: echo "Starting local Internet services." # do not let RSVP reserve more than 20 Mbit/s on the FDDI interface /usr/sbin/iftcntl fta0 config max_total_r 20000000 # start the RSVP daemon /usr/sbin/rsvpd If you make any changes to the network interface configuration, restart the rsvpd daemon. If you want to use mrouted and rsvpd on a system, start mrouted before rsvpd. If mrouted is running on your system, rsvpd acts as an RSVP multicast router. If IPv4/IPv6 forwarding is enabled on the system, rsvpd acts as an RSVP IPv4/IPv6 unicast router. Restricting RSVP Usage To restrict RSVP usage to a limited number of users on the system, set the permissions for the /var/rsvp directory as follows: # chmod 750 /var/rsvp # chgrp staff /var/rsvp Those users who cannot access the /var/rsvp directory will be unable to request RSVP reservations, use any RSVP API (RAPI) function, or use the rsvpstat command. RESTRICTIONS
You must be superuser to invoke the rsvpd daemon. FILES
The rsvpd log file when debugging is enabled. This directory contains the RSVP API library UNIX domain socket. The file that contains the process ID of the rsvpd daemon that is currently running. SEE ALSO
Commands: iftcntl(8), rsvpstat(8) Networking: RSVP(7) rsvpd(8)
All times are GMT -4. The time now is 03:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy