Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: nariwithu
800
Posted By nariwithu
Take the input from output logs
Hi,

If I have loads of logs like below and I am interested to print the requests(lines) which have taken more than 1000 ms. In this case how could I print the two highlighted lines ?

abc.log...
863
Posted By nariwithu
Take the input from output logs
Hi,

If I have loads of logs like below and I am interested to print the requests(lines) which have taken more than 1000 ms. In this case how could I print the two highlighted lines ?

abc.log...
1,122
Posted By nariwithu
Thanks MadeinGermany, It is working perfect.
Thanks MadeinGermany, It is working perfect.
1,122
Posted By nariwithu
Rudic - It is giving me all AAAA responses
Rudic - It is giving me all AAAA responses
1,122
Posted By nariwithu
Getting lines between two strings with duplicate set of data
if I have the following lines in a file app.log

some lines here
<AAAA>
abc
<id>123456789</id>
ddd
</AAAA>some lines here too
<BBBB>
abc
<id>123456789</id>
ddd
</BBBB>some lines here too...
2,612
Posted By nariwithu
Hi Mirni, Your perl script was working so I...
Hi Mirni,

Your perl script was working so I thought I should finish my pending work with that only. Today I got some time to see how gawk command is working.

You are awesome. It worked well. ...
2,612
Posted By nariwithu
I tried to execute ./configure, make and make...
I tried to execute ./configure, make and make install separately. First two commands executed well, but make install has given me some error given below

Making install in .
test -z...
2,612
Posted By nariwithu
Hi Mirni, Downloaded gawk-3.1.8.tar.gz ...
Hi Mirni,

Downloaded gawk-3.1.8.tar.gz
Extracted in windows machine as tar was not working for me.
uploaded the extracted gawk-3.1.8 folder to my directory in unix machine.
ran the command...
2,612
Posted By nariwithu
Mirni, It is still getting me record too...
Mirni,

It is still getting me record too long exception with the following code as you suggested.


/usr/xpg4/bin/awk '$0~"<"resp{sect=1} sect{p=p (p?RS:x) $0} $0~"<user>"user && sect{found=1}...
2,612
Posted By nariwithu
Mirni or Scrutinizer, Thanks for your...
Mirni or Scrutinizer,

Thanks for your continuous effort in helping me.

Do you have anything for me to do to rewrite the command to work on my real logs ?
2,612
Posted By nariwithu
Perfect ! Both commands are working perfect for...
Perfect ! Both commands are working perfect for the example that I posted. \

But it is not working if I change the script to my actual.

Some useful points about my real logs..
1. Responses...
2,612
Posted By nariwithu
Ohh.. How did I do that ? Yes Mirni it is typo...
Ohh.. How did I do that ? Yes Mirni it is typo error. My sincere apologies for inconvenience.
I modified my template log file with the correct tag .. But it is not replacing the empty lines where it...
2,612
Posted By nariwithu
I have used correct tags while I ran the...
I have used correct tags while I ran the commands. Yes I agree, I had given one time as userId and now I am using user. I had given a note on this in my previous post.

I tried to run with your...
2,612
Posted By nariwithu
Hi, I am searching for a response xml. As you...
Hi, I am searching for a response xml. As you might know xml tags ends with </.
My user tag starts with <user> and ends with </user> but not with <user>.
I believe, We need to use escape patterns...
2,612
Posted By nariwithu
Thank You Scrutinizer ! First command is...
Thank You Scrutinizer !
First command is having syntax error.

Second command worked partially as it has not printed the complete response2 of user1 where it missed to have part of response below...
2,612
Posted By nariwithu
Thanks again Mirni ! I am working on...
Thanks again Mirni !

I am working on Solaris.
awk --version is not working to get the version.

your awk code ran and given me some random one line output from the log, it has not given me...
2,612
Posted By nariwithu
Hi Mirni, Thanks for replying ! How do I...
Hi Mirni, Thanks for replying !

How do I know if I have GNU awk or not ?

I am getting the following exception when I run the command that you have given me bash: tac: command not found

is...
2,612
Posted By nariwithu
Last occurrence of code between two tags
Hi, I am new to linux and have a challenge while I am debugging my application logs n linux boxes.

our log file xxx.log will have different responses coming in its way while an user logs in. Each...
Showing results 1 to 18 of 18

 

Featured Tech Videos

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