pull xml's from logs


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers pull xml's from logs
# 1  
Old 08-25-2008
MySQL pull xml's from logs

Hi Frnds

I Want to pull xml's from logs based on the below condition.In each log having so many xml's it's taking so much of time to search all logs manually...can u please provide solution

USER:ECMINT CONV:GETARPLNICHUBTST
<CardNbr>376703134104004</CardNbr>
</Envelope>

Response XML:
</Envelope>


Description:
In each log having so many request and response xml's
each XML should be start with
USER:ECMINT CONV:GETARPLNICHUBTST
and some xml's having below tag <CardNbr>376703134104004</CardNbr>
and XML end with tag in request xml
</Envelope>

After request xml ...response xml will start some tags and should be end with again
</Envelope>
# 2  
Old 08-25-2008
Quote:
Originally Posted by pb18798
Hi Frnds

I Want to pull xml's from logs based on the below condition.In each log having so many xml's it's taking so much of time to search all logs manually...can u please provide solution

USER:ECMINT CONV:GETARPLNICHUBTST
<CardNbr>376703134104004</CardNbr>
</Envelope>

Response XML:
</Envelope>


Description:
In each log having so many request and response xml's
each XML should be start with
USER:ECMINT CONV:GETARPLNICHUBTST
and some xml's having below tag <CardNbr>376703134104004</CardNbr>
and XML end with tag in request xml
</Envelope>

After request xml ...response xml will start some tags and should be end with again
</Envelope>
I hv already posted 1 script ..chk whether it is helpful or not
plz chk the add given below:
https://www.unix.com/shell-programmin...#post302227903
# 3  
Old 08-25-2008
Could you please provide solution ....
# 4  
Old 08-25-2008
Quote:
Originally Posted by Niroj
I hv already posted 1 script ..chk whether it is helpful or not
plz chk the add given below:
https://www.unix.com/shell-programmin...#post302227903
Please read the rules. Complete words and sentences are required on this site.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to pull multiple XML tags from the same XML file in Shell.?

I'm searching for the names of a TV show in the XML file I've attached at the end of this post. What I'm trying to do now is pull out/list the data from each of the <SeriesName> tags throughout the document. Currently, I'm only able to get data the first instance of that XML field using the... (9 Replies)
Discussion started by: hungryd
9 Replies

2. Shell Programming and Scripting

If I ran perl script again,old logs should move with today date and new logs should generate.

Appreciate help for the below issue. Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt.............. 1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies

3. Shell Programming and Scripting

Pull out information from output logs

My scenario is as follows. 1. I have a reference file with the IP addresses and names $ cat ref.list 10.11.xxx.xxx AA 10.12.xxx.xxx BB 10.13.xxx.xxx CC 10.14.xxx.xxx DD 2. A script runs and gets me one of the IP addresses and puts it in a separate file, for e.g... (2 Replies)
Discussion started by: Nagesh_1985
2 Replies

4. UNIX for Dummies Questions & Answers

How do I pull the value between curly braces?

Hi everyone, I've got a file that looks like this: uid{508}pid{22224}pname{/PPROGRAM/pprgramx -profile:LIVE -serv:as ... I want to pull the value of pid between the curly braces, or 22224 in this example. pid is always the second pair of curly braces, but the length of the number is... (7 Replies)
Discussion started by: Scottie1954
7 Replies

5. Shell Programming and Scripting

Trying to pull a variable out of an xml file...

Hello. I'm new to *ix and am trying to pull a variable or two from an xml document. The document is in the format: <name>7_3(A).mov</name> <description>Some description from a file</description> <updatename>7_3_A.mov</updatename> <updatepath>Dailies Released</updatepath> ... (3 Replies)
Discussion started by: Renfield
3 Replies

6. Solaris

Need to know whch disk to pull out.

Hi all. This may be a stupid question but here goes: I lost a disk on my Sun-Fire 480-r and want to replace it. I don't care about the data, I just need to get a new disk in which I have. The problem I have is that there are two disks and both have the green lights on them... and I'm not... (3 Replies)
Discussion started by: jamie_collins
3 Replies

7. Shell Programming and Scripting

Grep yesterday logs from weblogic logs

Hi, I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows: """"""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies

8. Shell Programming and Scripting

Need AWk To parse XML logs

Hi , I need an Awk script to parse my log file . 2008-04-26 10:00:13,391 INFO Logger - <?xml version="1.0" encoding="UTF-8" standalone="no"?><2dm tmsg... (0 Replies)
Discussion started by: amit1_x
0 Replies
Login or Register to Ask a Question