Need command to search syslogs

Hi Experts
I am trying to track down an IP address on a unix DNS server using /var/log/syslog. However overwhelmed with data. I know very little of unix but I remember the Grep command as the "search" command. What would the command line be to pull the desired IP from this log?

Thanks in advance
D. arno
Who is Participating?
gt2847cConnect With a Mentor Commented:
If the system has reasonable security applied, the syslog files should NOT be world-readable...
grep "" /var/log/syslog
dsingh006Author Commented:
Yes I had tried that but this is the results
sudo less grep ""/var/log/syslog
[sudo] password for mmmmm:
grep: No such file or directory No such file or directory

Then it continues on to the whole log file
Try it this way:

sudo sh -c "grep /var/log/syslog | less "
sudo should not be necessary. Syslog files are generally world-readable.

Leave a space between "" and the filename.

And for the "less" thing - gt2847c's suggestion is correct.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.