nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

syslog message format

This is a discussion on syslog message format within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi, I need to send log message to syslogd, on RHEL. The message turns out to include the originator's IP ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-02-2009, 06:40 PM
Junior Member
User
 
Join Date: Feb 2009
OS: Debian
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
apop_role is on a distinguished road
Default syslog message format

Hi, I need to send log message to syslogd, on RHEL.

The message turns out to include the originator's IP address in the header: Feb 9 11:12:48 172.26.14.238 09/02/09 11:12:48,245 INFO WindowsEvent: 508 Load Balancer Starting

Whilst I want it to show the originator's hostname: Feb 9 11:12:48 ows01 09/02/09 11:12:48,245 INFO WindowsEvent: 508 Load Balancer Starting

Is there an easy way to configure this?
Reply With Quote
  #2 (permalink)  
Old 17-02-2009, 05:55 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

syslogd only logs message text send by an application. In your case you need to configure your application (LB). Can you configure your app to send specific log message? On a related not on UNIX / Linux you can use logger command to log any message to /var/log/messages (default) from a shell script.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
configuration , hostname , syslog


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Syslog redirect jerelev Networking, Firewalls and Security 1 28-10-2008 08:24 PM
Syslog-ng Documentation kvsmanean Ubuntu / Debian 1 13-06-2008 01:20 PM
How to install tar format software in RHEL 4.0 mannrj45 Linux software 8 26-09-2007 05:57 PM
how to change the format of multiple files in different directories dustcloud4 Shell scripting 0 05-06-2007 03:03 AM
How do I configure Linux as central syslog server? jerry Linux software 3 27-07-2005 10:21 PM


All times are GMT +5.5. The time now is 11:42 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38