Search Results

Search: Posts Made By: Epx998
11,567
Posted By Epx998
Than you very much. That converted the dates...
Than you very much. That converted the dates nicely. What do you suggest for getting the entries of the last hour? Current time, going back 60 minutes. I used date to mimic the format and going...
11,567
Posted By Epx998
results.txt is just the grep'd access_log for...
results.txt is just the grep'd access_log for apache on my proof of concept VM;


127.0.0.1 - - [17/Oct/2011:12:06:15 -0700] "GET /cacti/include/main.css HTTP/1.1" 304 -...
11,567
Posted By Epx998
I saw that post as well, but when I try what is...
I saw that post as well, but when I try what is suggested, I just get an empty tmp.log, there should be at least a few lines.

Here is the script I wrote;


date1=$(date --date '1 hour ago'...
11,567
Posted By Epx998
sed/awk date range?
Hi,

I am trying to grep out a date range in an access log file. I defined the date like so;


DATE1=$(date --date '1 hour ago' '+%m/%d/%y:%H:%M:%S')
DATE2=$(date '+%m/%d/%y:%H:%M:%S')
Then I...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy