Search Results

Search: Posts Made By: random_thoughts
4,261
Posted By random_thoughts
Thanks, Assumes input file name is test.log on...
Thanks, Assumes input file name is test.log on which my.awk script runs and it gives output to output.log

I can run this script by this command through command line
./my.awk test.log > output.log...
4,261
Posted By random_thoughts
Processing a file of input and redirecting the...
Processing a file of input and redirecting the output to another file. How Would I put input file name and out put file name in awk script, not thru command line
4,261
Posted By random_thoughts
Read input file with in awk script not through command line
Hi All,

Do we know how to read input file within awk script and send output toanother log file. All this needs to be in awk script, not in command line. I am running this awk through crontab.
...
3,358
Posted By random_thoughts
Nope I used split to compute in milisecond....
Nope I used split to compute in milisecond. anyways thanks

---------- Post updated at 10:11 AM ---------- Previous update was at 10:09 AM ----------

Thanks Jotne!
3,698
Posted By random_thoughts
I used gensub inside st and ed array to get uids...
I used gensub inside st and ed array to get uids instead of st[13] as follows.

st[gensub(/.*>([^&]+).*/,"\\1","")]=$2


And I want to use the whole awk on lines which has INFO, How would I...
3,698
Posted By random_thoughts
Thanks Jotne , Can you pls put comment in...
Thanks Jotne ,

Can you pls put comment in first 2 lines so that I can understand. as I am new to awk. Thanks a lot for your time.:)

---------- Post updated at 09:53 AM ---------- Previous...
3,698
Posted By random_thoughts
How to grep on unique id which has request and response on different lines?
Hi I want to find out those unique uids from the log file which have request and response.

The log file format is as follows. This log has other irrelevant lines too but each uid should have...
3,358
Posted By random_thoughts
Yes, I am using gawk. ---------- Post...
Yes, I am using gawk.

---------- Post updated at 06:46 AM ---------- Previous update was at 06:43 AM ----------
GNU Awk 3.1.3
3,358
Posted By random_thoughts
I'm using awk' mktime feature
I'm using awk' mktime feature
3,358
Posted By random_thoughts
Compute in milisecond by use of mktime
Hi,

I want to calculate diff b/w these starttime and endtime with use of mktime. I need response time in milisecond. I am using mktime to get these times. last three digits are in milisecond
...
7,673
Posted By random_thoughts
Hi Jotne, Can you pls explain me what this common...
Hi Jotne, Can you pls explain me what this common does. inside awk $0~u
7,673
Posted By random_thoughts
Thanks for looking into this, This exactly...
Thanks for looking into this,

This exactly work like my previous code, how ever the pain area to get avg response time for each hour.

like in 24 hr format 00,01,02...23 for each hour avg...
7,673
Posted By random_thoughts
for uid in ${uids}; do count=`grep "$uid"...
for uid in ${uids}; do
count=`grep "$uid" test.log|wc -l`
if [ "${count}" -ne "0" ]; then
unique_uids[counter]="$uid"
#echo "${unique_uids[counter]}"
let counter=counter+1
fi
done
echo...
7,673
Posted By random_thoughts
Calculate avg response time on hourly basis
Hi,

I am trying to calculate avg response time on hourly basis from the log file which has millions of records.

As of now I am trying with creating temp file which will have lines with unique...
Showing results 1 to 14 of 14

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