Solved

log xml files reviewing and formatting

Posted on 2014-07-22
4
302 Views
Last Modified: 2014-08-05
Hi,

My production logs has huge xml data within say applog.txt file. How do i format it and view it properly to analyze better.  Copying pasting to notepad++ and then renaming as xyz.xml and then formatting, debugging for individual field of the xpath taking long time. please advise
0
Comment
Question by:gudii9
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
Surrano earned 500 total points
ID: 40213678
If I understand properly there are mundane text log entries in the applog.txt and some of those entries contain xml snippets. I.e. applog.txt itself is not a proper xml file itself, right?

It would be nice to know what you'd like to parse and where. Assuming unix it's not impossible that we can forge some kind of simple filtering/formatting script as a solution.
0
 
LVL 7

Author Comment

by:gudii9
ID: 40218034
i am using lot of Notepad++ and Textpad to copy paste the unstructured XMLs. I wonder if there is a way i select all text and select like XML Tools and choose 'format xml' etc as given in below link

http://geek.sylvainw.com/2010/03/28/using-notepad-to-quickly-format-xml/

I tried to add those DLL files and all and it did not work. Please advise
0
 
LVL 8

Expert Comment

by:Surrano
ID: 40228554
So basically you need a tool to pretty print (indent, linebreak etc) XML parts of an otherwise ordinary text file?
And this tool must come in the form of a notepad++ plugin?
0
 
LVL 7

Author Comment

by:gudii9
ID: 40236760
correct. I saw under language there is xml option which seems fine. but I wonder if there is any good plugin as below plugin is not working
http://geek.sylvainw.com/2010/03/28/using-notepad-to-quickly-format-xml/
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 62
sumDigits  challenge 7 60
stringclean challenge 26 56
thymeleaf natural templating vs JSP 2 24
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now