LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2004, 07:54 PM   #1
the-chains
LQ Newbie
 
Registered: Jul 2004
Distribution: Red Hat
Posts: 11

Rep: Reputation: 0
Question syslog sorting by hostname


Does anyone know how to sort my syslogd files by hostname. Right now (you guessed it) all hosts remotedly send logs to a central syslogd and the config needs to stay the same.

thanks
 
Old 11-09-2004, 07:57 PM   #2
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Rep: Reputation: 15
try
# grep hostname logfile
 
Old 11-10-2004, 06:26 AM   #3
the-chains
LQ Newbie
 
Registered: Jul 2004
Distribution: Red Hat
Posts: 11

Original Poster
Rep: Reputation: 0
It works thats for sure but is there any way to have it done in realtime?
 
  


Reply


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
forwarding syslog messages overwrites original hostname gfizzy Linux - Software 2 10-30-2009 09:24 AM
Which sorting algorithm? nodger Programming 6 01-28-2005 06:13 PM
Sorting Beppe83 Linux - Software 7 06-21-2004 09:10 AM
Sorting Syslog alarms by IP/Machine name Llwyd Linux - Software 1 07-17-2003 11:14 AM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:41 AM.

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