Syslog - Message forwarded from


 
Thread Tools Search this Thread
Operating Systems AIX Syslog - Message forwarded from
# 1  
Old 04-01-2009
Syslog - Message forwarded from

I am not a Unix / AIX admin, but am working with one that doesn't seem to know how to set up syslog to forward messages to me the way I need them. Every message they send me has "Message forwarded from <insert host name here>:" but I need it to only have the host name.

In the examples below, the first one is how I am receiving the syslog messages (verified by using TCPDUMP) and the second one is how I would like to receive it. cola041 is the host name.
<142>Mar 25 18:27:15 Message forwarded from cola041: Oracle Audit[2265272]: LENGTH: "219" SESSIONID:[7] "1740145" ENTRYID:[5] "16867" STATEMENT:[4] "2337" USERID:[6] "DBSNMP" USERHOST:[7] "cola041" ACTION:[1] "3" RETURNCODE:[1] "0" OBJ$CREATOR:[3] "SYS" OBJ$NAME:[13] "V$ALERT_TYPES" OS$USERID:[6] "oracle"

<142>Mar 25 18:27:15 cola041 Oracle Audit[2265272]: LENGTH: "219" SESSIONID:[7] "1740145" ENTRYID:[5] "16867" STATEMENT:[4] "2337" USERID:[6] "DBSNMP" USERHOST:[7] "cola041" ACTION:[1] "3" RETURNCODE:[1] "0" OBJ$CREATOR:[3] "SYS" OBJ$NAME:[13] "V$ALERT_TYPES" OS$USERID:[6] "oracle"
The admin did start using the -n option for syslog, but now there is no host name or "Message forwarded from cola041:". Can someone tell me if this is possible and how I need to ask our admin to set this up properly?

Many thanks.

Matt
# 2  
Old 04-01-2009
We send our syslog entries to another server for auditing reasons. I don't know what they see on their end, but I added this to my /etc/syslog.conf file, restarted the syslogd, and the audit group was happy:
Code:
*.debug         @auditohostname.doamin.com

# 3  
Old 04-01-2009
We have done the same thing, but when you look at the raw message, instead of the host name, it has "Message forwarded from cola041:". I read somewhere that you might be able to use templates that are specified in the rsyslog.conf file.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Setting X-Forwarded-For In C

Question, I've been trying to find information for setting the X-Forwarded-For header in C programs, or basically how spoofing it works. I've seen how to do this in ruby, python, and even with curl. I tried searching Google for it, but have came up empty handed. Any links, examples or advice much... (11 Replies)
Discussion started by: Azrael
11 Replies

2. UNIX for Dummies Questions & Answers

Is it possible that X11 can be forwarded through a SSH tunnel

I communicate with the server via a ssh tunnel, configured via Putty. Recently, I'm trying to forward the X11 through it, but it doesn't work. Is there any one work this way? Searched with google, but didn't find anything. Thx in adv. (2 Replies)
Discussion started by: sleepy_11
2 Replies

3. Ubuntu

How redirect syslog message to a specified file?

Hello to everyone! I have a question about syslog. I want put the messages of log in a particular file but really i don't know how to do that or i don't get the results that I want. I do this: #include <stdio.h> #include <stdlib.h> #include <syslog.h> int main (void) { ... (4 Replies)
Discussion started by: Kovalevski
4 Replies

4. HP-UX

Generate message in syslog.log

Dear Concern, Is there any command to generate message in /var/adm/syslog/syslog.log file in HP-UX. With Best Regards, Kauser (2 Replies)
Discussion started by: makauser
2 Replies

5. AIX

Message redirected from syslog

Hi. recently in many of our lpars we are getting a message in errpt as "C6ACA566 0315094014 U S dtc MESSAGE REDIRECTED FROM SYSLOG". I have also checked the /etc/syslog.conf file. It doesn't point to error log. Can someone please advise about how to fix this error ? pmut3:/> errpt -aj... (4 Replies)
Discussion started by: newtoaixos
4 Replies

6. Red Hat

Syslog Message

All thanks for the help in advance. I'm current have my syslog server built on RHEL5.7. I'm wondering how to I have the syslog messages categorized by hostname? Is that an option I can add to the syslog.conf? (1 Reply)
Discussion started by: aojmoj
1 Replies

7. UNIX for Dummies Questions & Answers

Syslog Message Columns

Hi all, I need your help with syslog columns. Currently I have a script as follows: (extract) for messages in `cat syslog_message_list.txt`; \ do \ grep $messages syslog.`date +%d%m%y`.log | \ tr -s " " | \ cut -d" " -f4,9- | \ sort -k3.2,3 -k2,2 -k1nr,1 | \ uniq -c | \ sort -k3.2,3... (6 Replies)
Discussion started by: wthomas
6 Replies

8. UNIX for Advanced & Expert Users

Q on <user> of syslog message generated by logger command

Generally(at least on AIX5.3, Solaris9, OS X)'logger' command would create syslog messages which carry <login name> . On Solaris9, I have experienced two circumstances in which 'logname' command fails. In this circumstance I saw the 'logger' command generated syslog messages which carry... (0 Replies)
Discussion started by: masaki
0 Replies

9. Programming

why I can't get syslog message?

I read Unix network programming by richard,in chap12.3,it say if call syslog() by using parameter LOG_USER,it should write a message in /var/adm/messages in Solaris,such as "connected from 10.1.1.2",example file inet/daytimetcpsrv2.c.I want to know which syslog file in FreeBSD7.0?I look for... (1 Reply)
Discussion started by: konvalo
1 Replies

10. Solaris

syslog message..!

I got my system sun fire 6800 hung later reboot after generating these message can any one help me on this to review these message..!! nfssrv: WARNING: nfsauth upcall failed: RPC: Operation in progress mountd: cannot accept connection: 19: error unknown (current state -1) KAVE00166-W The... (13 Replies)
Discussion started by: nicknihal
13 Replies
Login or Register to Ask a Question