Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-14-2018, 09:37 PM   #1
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?


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

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
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, 02:03 AM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,681

Rep: Reputation: 218Reputation: 218Reputation: 218
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:58 PM
[SOLVED] syslog message redirect Gholi Linux - Server 1 08-25-2011 04:45 PM
Syslog-ng: filtering out a message ReefShark Linux - Server 0 07-30-2008 07:11 AM
Please Help on Reoccuring Message in SysLog Rufus330Ci Linux - Software 2 01-25-2006 01:57 PM
syslog error message saag Linux - Newbie 0 03-20-2004 03:28 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 AM.

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