Search Results

Search: Posts Made By: zenkarthi
3,413
Posted By zenkarthi
Perfect , Thank you Aia for your help! Perl -ne...
Perfect , Thank you Aia for your help! Perl -ne syntax working well.

for the perl entries.pl log.txt returning to prompt, since it is working only if the exact /$from/ timestamp matching in the...
3,413
Posted By zenkarthi
I tried the date in the perl and it showing...
I tried the date in the perl and it showing invalid option.
3,413
Posted By zenkarthi
I found the below perl script in other post, it...
I found the below perl script in other post, it is working perfectly for my requirements, since "from" and "to" time is unknown, can you help me to create the Perl script to take the current time for...
3,413
Posted By zenkarthi
Thank you all! @MadeInGermany - your...
Thank you all!

@MadeInGermany - your suggestion is working if the time value is lower to higher but if the time value is higher to lower then the output is completely different .

RudiC , The...
3,413
Posted By zenkarthi
Thanks for the reply! awk '$0>=from &&...
Thanks for the reply!

awk '$0>=from && $0<=to' and '$0>=from {pr=1} $0>to {pr=0} pr' both output looks the same, both are not printing the lines which do not have the time stamp.
3,413
Posted By zenkarthi
Collecting all lines between two time stamp from the log
Can you help me to collect the entire logs between two time stamp. The below awk command collecting the logs only if the line has time stamp.


awk '$0>=from && $0<=to' from="150318 23:19:04"...
2,829
Posted By zenkarthi
Perfect! It is working exactly for my...
Perfect! It is working exactly for my requirements. Thanks RudiC for your help!
2,829
Posted By zenkarthi
oh Sorry, the last line is not holding the time...
oh Sorry, the last line is not holding the time stamp, by mistake I copied next line starting word, it has the time stamp...is any other way I can try instead of adding grep line in the script.

...
2,829
Posted By zenkarthi
Thanks RudiC. can you explain little more on...
Thanks RudiC. can you explain little more on this please?

As I mentioned, the script has to run every 20 mins to collect the past 15 mins logs from the log file...for example, if script is...
2,829
Posted By zenkarthi
it is printing all the logs. Also, the idea to...
it is printing all the logs. Also, the idea to run the script for every 20 mins and collect the past 15 mins logs....
2,829
Posted By zenkarthi
Logs between two time stamp
I am creating log monitoring script and stuck up to get the logs between two time stamp.

can you please help me to create the script to get the logs between two time stamp, for example, I need...
3,504
Posted By zenkarthi
balajesuri - I think sed will not help here, in...
balajesuri - I think sed will not help here, in case if the log error starting from "17:05" and script collecting the details from 17:30 then what is the output....


Akshay - The expected output...
3,504
Posted By zenkarthi
awk : collecting all data between two time frame
Hi Experts ,

I need your help to collect the complete data between two time frame from the log files, when I try awk it's collecting the data only which is printed with time stamp
for example,...
12,355
Posted By zenkarthi
Awesome, it's working perfectly .... "After line...
Awesome, it's working perfectly .... "After line 10:50" - may be instead of checking every 15 mins I will mention 20 or 25 min" so that will get the alerts in the next cron checking.

you're the...
12,355
Posted By zenkarthi
ya, that's fine as long as its not given any...
ya, that's fine as long as its not given any repeated details. ( if no data with in range then it won't give any details right)
12,355
Posted By zenkarthi
Appreciate your help and Sorry to keep bothering...
Appreciate your help and Sorry to keep bothering you.

PFA data.log.txt, kindly copy this to your linux box and use for your testing

can you help me to collect complete log details only ...
12,355
Posted By zenkarthi
PFA , Thanks for your help.
PFA , Thanks for your help.
12,355
Posted By zenkarthi
I have tried different linux servers but all are...
I have tried different linux servers but all are showing the same output... Installing nawk again its little pain to get the approval on Prod.

I'm using the same dconv2.awk which you provided...
12,355
Posted By zenkarthi
Appreciate your help, My expectation to collect...
Appreciate your help, My expectation to collect all data's within two time frame from the logs files


$ awk -f dconv2.awk data
$


Details in the logs files


$ more data
####<Nov 19,...
12,355
Posted By zenkarthi
Thanks , I'm receiving output only If I specify...
Thanks , I'm receiving output only If I specify the time format but it's looks collecting the previous logs entry as well (ex - from not working, to - working perfectly )


awk -f dconv2.awk...
12,355
Posted By zenkarthi
Awesome , It's working perfect. Little...
Awesome , It's working perfect.

Little challenges now,

$more file

####<Nov 19, 2013 8:19:04 PM UTC> TimedOutException <Test-hostname>
outofmemory
test
foo
####<Nov 19, 2013 8:29:04 PM...
12,355
Posted By zenkarthi
sorry I'm not able to catch :( can you provide...
sorry I'm not able to catch :( can you provide some example please ?

My script

#!/bin/bash
#set -xv
# The script to verify the error from application logs
# Please don't edit this file
...
2,533
Posted By zenkarthi
guru's Any suggestion ? it's bit urgent so...
guru's

Any suggestion ? it's bit urgent so need your help on this...

---------- Post updated at 02:41 PM ---------- Previous update was at 12:44 PM ----------

blackrageous

Any suggestion,...
12,355
Posted By zenkarthi
Thanks Corona688. 1. so would you suggesting...
Thanks Corona688.

1. so would you suggesting to covert the output (ex-file.txt) from 12 hours to 24 hours ? It seems file.txt size is 5 mb, is it any other possible way to collect the logs between...
12,355
Posted By zenkarthi
Redhat Linux. ---------- Post updated at...
Redhat Linux.

---------- Post updated at 01:50 PM ---------- Previous update was at 01:48 PM ----------

awk - since its 12 hours format so I'm facing issue "AM, PM" and in case if time stamp...
Showing results 1 to 25 of 31

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