Search Results

Search: Posts Made By: batka
3,168
Posted By batka
Works great! Thanks! Another problem: I...
Works great! Thanks!

Another problem:

I got these 2 another lines, but these are processing different two logs, how can i add this to my main script?


awk -F'[]:]' '/INFO/ {print > (...
3,168
Posted By batka
Yes! :) A nice script, those 4 lines into a...
Yes! :)

A nice script, those 4 lines into a "big" script.
3,168
Posted By batka
awk one liners into a nice script
Hi All,

I got some awk one liners, how can i split it all into a nice script?

Got these:

gzcat capgw0.log-201308161376632741.gz | sed -n '/2013-08-16 05:56:/,/2013-08-16 05:58:/p' >...
3,162
Posted By batka
Thanks! Works great! How can i figure this...
Thanks! Works great!

How can i figure this into a script?
3,162
Posted By batka
The output will be files, where the file names...
The output will be files, where the file names are the sessionID (AId+UID).
The files containing lines (INFO, DEBUG + XML messages) with same ID's.
3,162
Posted By batka
I can provide a bigger sample of the file. ...
I can provide a bigger sample of the file.


2013-08-16 05:08:56,694 ( 225: cap_ulti_listener.cpp) [140561893431328] DEBUG - AId:57371, DId:6848: retrieving the full application context from...
3,162
Posted By batka
Yeah, thats ok. But i need the INFO lines...
Yeah, thats ok.

But i need the INFO lines too. Every same ID' to a new file with the xml messages.
3,162
Posted By batka
Yes, it produces this: 2013-,72013-9...
Yes, it produces this:


2013-,72013-9 (1093: jms_con.cpp) [140561430333184] DEBUG - Received XML TextMessage:
<?xml version="1.0" encoding="UTF-8"?><iSig...
3,162
Posted By batka
I got this now: #!/usr/bin/awk -f BEGIN {...
I got this now:
#!/usr/bin/awk -f

BEGIN { FS=":|," }
FNR==NR && /INFO/ {
a[$0,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10]++ ;
next

}

END

{
for (i in a) print i
}

This...
3,162
Posted By batka
Yeah, that's the problem. I can't start it, got...
Yeah, that's the problem. I can't start it, got no idea. I'm a newbie to scripting.
3,162
Posted By batka
Thanks you! But how can i do this inside a script?
Thanks you! But how can i do this inside a script?
3,162
Posted By batka
Write out specific data from log to a new file
I got a huge log in zipped files, i need to write out lines by specific data and if the line with the same contains XML message with the same sessionID will be written to the file to.

The log...
1,711
Posted By batka
Tried it. The result is 2 files with a lot of...
Tried it. The result is 2 files with a lot of lines that contains the INFO message. That's not a problem. But i need every line that contains INFO message into a new file, that called by the actual...
1,711
Posted By batka
Would be great that the output will be a file,...
Would be great that the output will be a file, every line that contains the INFO line must be in a file that named by the SID data, like this:

[2013-08-16 03:24:39,192][INFO...
1,711
Posted By batka
The filename is newcs-in.log
The filename is newcs-in.log
1,711
Posted By batka
Data sorting out from log file
I have a logfile looks like this:

[2013-08-16 03:24:39,192][INFO ][AbstractServiceInvoker [SID:187175558][] Received request of type [ReportNotification]
I need two write out every line...
Showing results 1 to 16 of 16

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