Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-19-2005, 05:04 AM   #1
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
search in logs question

how do i search for a text in log files from my server?
the log files are very big and i can't open each file and search for that text
__________________
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 05:24 AM   #2
Gungadin
Confirmed User
 
Join Date: Aug 2005
Location: O&A PARTY ROCK
Posts: 444
Unix/linux/bsd/etc:

>grep -i -r "your stuff here" /path/to/your/access_log

The -i is case INsensitive
The -r is recursive
(You may not need either)

Hope this helps...
Gungadin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 06:49 AM   #3
PussyTeenies
Confirmed User
 
Join Date: Feb 2005
Location: Haarlem and Amsterdam, capital of the porn world ;-)
Posts: 6,496
Quote:
Originally Posted by Gungadin
Unix/linux/bsd/etc:

>grep -i -r "your stuff here" /path/to/your/access_log

The -i is case INsensitive
The -r is recursive
(You may not need either)

Hope this helps...
if its freebsd instead of "-r" you can also use "-R"

and for tgz archives use
Code:
zcat archive_file.tgz | grep -R -i "your stuff"
__________________
Need adult hosting?

Contact us!
WARM Hosting

Need an IT solution? or someone to check your site and security? Nossie - IT Professional
PussyTeenies is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2005, 07:17 AM   #4
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
Quote:
Originally Posted by Gungadin
Unix/linux/bsd/etc:

>grep -i -r "your stuff here" /path/to/your/access_log

The -i is case INsensitive
The -r is recursive
(You may not need either)

Hope this helps...

instead of " /path/to/your/access_log" can i enter a directory to search all files from that directory?
__________________
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.