Search Results

Search: Posts Made By: fajar_3t3
3,231
Posted By fajar_3t3
here the real log , Thanks
here the real log ,



Thanks
3,231
Posted By fajar_3t3
Okay noted bro... I already find my question...
Okay noted bro...

I already find my question

cat tdr12009.log | grep -i success | grep promo_cashback | awk -F'[|;]' '{print substr($1,1,16),$15}' | awk -F"|" -v d1="$(date --date="15 min ago"...
3,231
Posted By fajar_3t3
How to get last 15 minutes timestamp and threshold > 60 will sent alert?
Hi All,


need your help , i have some files and got some below condition

cat tdr12009.log | grep -i success | grep promo | awk -F'[|;]' '{print substr($1,1,16),$15}' | more


2019-10-16...
5,853
Posted By fajar_3t3
Hi rdrtx...
Hi rdrtx (https://www.unix.com/member_modal.php?u=302126107&modal=1)1


thanks for reply...your awk will generate per second right?

--- Post updated at 07:46 PM ---

Hi RudiC


Thanks Alot...
5,853
Posted By fajar_3t3
How to count respon time max min avg for nginx logs?
Hi All,


need your help, i want count respon time max and average my nginx logs, based on hourly or minutes per api...



my nginx.log sample :



10.1.1.1 - - [25/Aug/2019:05:26:30...
4,114
Posted By fajar_3t3
How to count average and max respon time?
sorry i will revise first
5,502
Posted By fajar_3t3
How to urlencode curl messages?
i have script got error when curl message . i think have some problem with character "space" or other because when i tried skip space , script running normal.


this is my script :



...
6,057
Posted By fajar_3t3
Hi RudiC thanks for reply my...
Hi RudiC


thanks for reply


my requirement if found condition $4 > 300 will sent alert with curl



sample :



2019-07-20|20:25|Mohon maaf, transaksi anda saat ini belum dapat...
6,057
Posted By fajar_3t3
Hi rudyC, i found some awk almost done...
Hi rudyC,


i found some awk almost done for this script but dont know how to print result $0 to alert ( i am using curl )


awk it will like below :



cat datafiles | strings | awk...
6,057
Posted By fajar_3t3
Hi RudyC, thanks a lot for your reply. ...
Hi RudyC,


thanks a lot for your reply.


your awk running well...but how print count and sent alert with also "messages error" ( row 3 )





2019-07-20|21:17|Mohon maaf, transaksi...
6,057
Posted By fajar_3t3
Hi rudy, thanks for your reply , your awk...
Hi rudy,


thanks for your reply , your awk great.


btw if the output result want to add delimiter "|" how to add for the awk, i try below but dont know how to add delimitter for column 3 and...
6,057
Posted By fajar_3t3
How to use awk with multiple pattern?
Hi All,


need your help , i want grouping complicated log below became count data message error per 5 minutes.


log some like below :



/data/logs/ag/tdr25001.log:2019-07-20...
5,456
Posted By fajar_3t3
Hi rudic thanks for your reply...its works
Hi rudic


thanks for your reply...its works
5,456
Posted By fajar_3t3
How to grouping time and based on value with multiple pattern?
Hi All,

need help...


I have some log below :[2019-07-18T01:08:41+0700][AsyncHttpClient-3-9][ERROR][test.system.interfaces.paybill.service.impl.DefaultPayBillViewService] ###...
2,454
Posted By fajar_3t3
How to copy all structure folder create last day?
HI All,


please help , i got same case . i want copy folder and directory create yesterday.


for sample below :


drwxr-xr-x 4 apps apps 33 Nov 23 04:00 xxxxxx@gmai.com
drwxr-xr-x 4...
1,922
Posted By fajar_3t3
How to post content file of data using curl?
HI All,

i want to asking about my case , how to post content file of data using curl.

currently if i wanna post data file , i can use this command below :

curl --cacert maxaj.cer -X POST -F...
841
Posted By fajar_3t3
How to joint multiple value to 1 files?
HI All

need your help i want joint multiple value from 4 files to 1 files.

example like below :

file 1 :

20:22|303
20:23|287
20:24|318
20:25|307
20:26|315

file 2 :

306
288
319...
1,683
Posted By fajar_3t3
Hi Chubler Great Thanks for your help, its...
Hi Chubler

Great Thanks for your help, its works
1,683
Posted By fajar_3t3
Hi Andrew Yes correct, for value 0...
Hi Andrew

Yes correct, for value 0 currently missing in output files.

for the first time stamp begin 00:00:00 and last time stamp 23:59:59

Thanks
Fajar
1,683
Posted By fajar_3t3
Bash Script Generate Output Value "0"
Hi All

could u please help me about my query problem below :

cat filesname | awk -F"[ |]" '{cc[substr($2,1,8)]++ } END {for ( i in cc ) print i,cc[i]}' | sort -nk1

will shown output below :...
1,474
Posted By fajar_3t3
wow excelent thanks for your help rdrtx1 ...
wow excelent thanks for your help rdrtx1

thanks a lot

:b::b::b::b::b:
1,474
Posted By fajar_3t3
How to count data per 5 Minutes?
Hi All

could u help me, i want to count data per minutes to be 5 minutes.

sample data like below :

23:40 187
23:41 200
23:42 178
23:43 171
23:44 161
23:45 145
23:46 172
23:47 163...
2,490
Posted By fajar_3t3
Hi Scott Thanks for your reply , solved this...
Hi Scott

Thanks for your reply , solved this case with your command :

cat test.txt | sort -nrk2 | awk -F: '!A[$1]++' | sort -nk1
00:07:15 139
01:00:05 89
02:01:50 58
03:27:07 132
04:03:10...
2,490
Posted By fajar_3t3
Bash script max value per hour
i want to get max value every hour

sample input :
20:46:22 23
20:46:23 65
20:46:24 30
20:46:25 7
21:46:26 23
21:46:27 28
21:46:28 47
21:46:29 35
22:46:30 5
22:46:31 38
22:46:32 26...
Showing results 1 to 24 of 24

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