Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/usr/bin/logger -f option gives multiple entries per line in the file

Status
Not open for further replies.

630111

MIS
Oct 30, 2001
127
0
0
US
My input file is this...

QUANTUMSDLT320 /dev/rmt/7cbn PMC25Y0169
QUANTUMSDLT320 /dev/rmt/8cbn RBD15Y1693
QUANTUMSDLT320 /dev/rmt/9cbn PMC36Y0665
QUANTUMSDLT320 /dev/rmt/10cbn RBD38Y0893
QUANTUMSDLT320 /dev/rmt/11cbn RBE17Y0665
QUANTUMSDLT320 /dev/rmt/12cbn RBD30Y1052

I try to use logger as follows

logger -p local0.info -t SERNO -f inputfile

And I get this in my /var/adm/messages

Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/7cbn PMC25Y0169
Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/9cbn PMC36Y0665
Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/8cbn RBD15Y1693
Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/10cbn RBD38Y0893
Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/9cbn PMC36Y0665
Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/11cbn RBE17Y0665
Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/10cbn RBD38Y0893
Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/12cbn RBD30Y1052
Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/11cbn RBE17Y0665
Sep 10 16:13:55 p0690b01 SERNO: [ID 702911 local0.info] QUANTUMSDLT320 /dev/rmt/12cbn RBD30Y1052

I get multiple log entries per line. Any idea of how to remedy this?

Thanks!
630111
 
Hi,
I can give one idea.
please check /etc/syslog.conf file.
probably info or local0.info messages routed twice to /var/adm/messages file.
if this is true, reconfigure your syslog.conf file and send kill -HUP to pid of syslog process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top