LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2018, 08:37 PM   #1
tonygrimwood
LQ Newbie
 
Registered: Jun 2018
Posts: 1

Rep: Reputation: Disabled
Syslog message tagging


Hi all,

We have a number of FM transmitters (with Linux controllers) that are network-connected through GSM routers, and I've got them communicating with a remote syslog server. Unfortunately these GSM boxes strip the IP address in the hostname field and replace it with their own IP. Is it possible to place an identifier in the message text field that will make the source readily identifiable? e.g. "rock-mta-tx", which would make it obvious that the message originated from the "Rock transmitter at Maungataniwah".

Can this be done, and if yes, how?

Thanks,

Tony
 
Old 06-15-2018, 01:00 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The FM transmissions are routed through the gsm routers, which probably assign the IPs. The Linux controllers might not even be networked together, because they wouldn't need to be. Although it seems they are connected to a syslog server. I'm not intimately familiar with gsm routing, but with routing in general it seems if you want to know which hardware is involved, you need to look at the MAC for the device.
 
Old 06-15-2018, 01:03 AM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
An easy way would be to append the host name to all messages. You can do it by a simple wrapper over syslog.

You can also try the syslog -l option that logs with the hostname only and not with the full domain name (I assume this is your case). If the hostnames are set up in unique way, this may work as you expect.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Snmptrap message in syslog Xyue Linux - Software 2 05-17-2016 07:58 PM
[SOLVED] syslog message redirect Gholi Linux - Server 1 08-25-2011 03:45 PM
Syslog-ng: filtering out a message ReefShark Linux - Server 0 07-30-2008 06:11 AM
Please Help on Reoccuring Message in SysLog Rufus330Ci Linux - Software 2 01-25-2006 12:57 PM
syslog error message saag Linux - Newbie 0 03-20-2004 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration