LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-10-2016, 12:20 PM   #1
zabeeh.abid
LQ Newbie
 
Registered: Feb 2016
Posts: 5

Rep: Reputation: Disabled
syslog configuration


Dear Forum Members,

I have edit syslog.conf file and add there IP of QRadar event Collector for Event collection. I have different machines of linux and I have done this successfully and recieved logs in QRadar. But My requirement is that I want,syslog send logs to QRadar with the linux IP not the hostname (as an identifier) currently hostname is the identifier of linux machine. because hostname is same of all my linux machines. and I can't understand which machine is send me the logs. so is want syslog send logs to QRadar with th IP.


Your Quick Response would help me to complete my task.

Thank You!

Regards,
Zabeeh.Abid
 
Old 02-10-2016, 12:33 PM   #2
zabeeh.abid
LQ Newbie
 
Registered: Feb 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Noted. For next time I will post at once
 
Old 02-10-2016, 12:37 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zabeeh.abid View Post
Dear Forum Members,
I have edit syslog.conf file and add there IP of QRadar event Collector for Event collection. I have different machines of linux and I have done this successfully and recieved logs in QRadar. But My requirement is that I want,syslog send logs to QRadar with the linux IP not the hostname (as an identifier) currently hostname is the identifier of linux machine. because hostname is same of all my linux machines. and I can't understand which machine is send me the logs. so is want syslog send logs to QRadar with th IP.

Your Quick Response would help me to complete my task.
This is a volunteer forum...asking for/expecting a 'quick response' is fairly rude. We volunteer our time here.

That said, you don't say what version/distro of Linux you're using, or if you're using the stock syslog, or syslog-ng to do this. If it's syslog-ng, your first stop (since you needed a 'quick response') should have been the documentation. Pay particular attention to the keep_hostname and use_dns directives for syslog-ng.
 
Old 02-10-2016, 12:44 PM   #4
zabeeh.abid
LQ Newbie
 
Registered: Feb 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Dear Friend,

Quick response mean not much Quickly. I can understand your opinion on this my friend.
as I am not much expert in linux but IBM Qradar. My customer have RHEL-6 where rsyslog is running. I configure rsyslog.conf as follows.
*.*@QRadar_IP

and I receive all logs in QRadar with hostname of linux machine. I want rsyslog send logs with the linux machine IP's. that is much understandable.

Thank You Dear for your Initial response.
 
Old 02-10-2016, 12:54 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
The real question is why are all your hostnames the same?

On the QRADAR server, are there /etc/hosts entries for these remote syslog client hosts?

Does QRADAR have any dns-related options in its management interface?

Last edited by Habitual; 02-10-2016 at 01:28 PM.
 
Old 02-10-2016, 01:01 PM   #6
zabeeh.abid
LQ Newbie
 
Registered: Feb 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Dear Habitual,

As for your first question, Customer said that there is no requirement for hostname different. I know that is very silly answer but you know we can't argument.

no in QRadar there is no DNS related option available where I can find subjected information. But someone said that we can add command in rsyslog to set that logs send with Linux machine IP.
 
Old 02-10-2016, 01:30 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by zabeeh.abid View Post
Dear Habitual,

As for your first question, Customer said that there is no requirement for hostname different. I know that is very silly answer but you know we can't argument.

no in QRadar there is no DNS related option available where I can find subjected information. But someone said that we can add command in rsyslog to set that logs send with Linux machine IP.
Yes, it's hard to argue with a customer.

You missed one of my questions.

"On the QRADAR server, are there /etc/hosts entries for these remote syslog client hosts?"

Sorry, it did read QNAP, but I edited...

Do you have access to these remote syslog clients?
 
Old 02-10-2016, 01:39 PM   #8
Seneka77
LQ Newbie
 
Registered: Jan 2012
Location: Sanlúcar de Barrameda, Cádiz
Distribution: Puppy, Devuan, Guadalinex, TinyLinux, antiX, Wifiway, Zorin
Posts: 7

Rep: Reputation: Disabled
Hope this article could help you http://www.rsyslog.com/doc/v8-stable...age-properties the message property fromhost-ip could be your solution.
Cheers!
 
Old 02-10-2016, 02:35 PM   #9
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Seneka77 View Post
Hope this article could help you http://www.rsyslog.com/doc/v8-stable...age-properties the message property fromhost-ip could be your solution.
Cheers!
Thanks Seneka77, I couldn't find my template or remember the property.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Syslog configuration felix001 Linux - Server 1 09-08-2010 03:53 PM
syslog configuration bongobonga Linux - Software 1 06-19-2009 11:17 AM
syslog-ng configuration linux_@dmin Linux - Server 5 01-01-2009 11:17 PM
syslog configuration in 9.3 smannell SUSE / openSUSE 2 05-13-2005 03:16 PM
Syslog configuration RajaRC Linux - Networking 0 01-14-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:00 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