473,385 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Any easy way to analize log files with php?

Hi I'm wondering if there is an easy way to analize log files in php?
I'm sure there is a program somethere on the internet. If anyone can
point me to one it would be great.

I have a log file which contains regular entries as well as some XML
formatted info.
I need XML formatted stuff. Is there an easy way to pull xml data from
this file and process it?

P.S. I'm not very proficient with XML parsing and processing - any tips
will help

Thanks,

Jan 19 '06 #1
1 1413
Alex wrote:
Hi I'm wondering if there is an easy way to analize log files in php?
I thought analyzing log files already was a pain in the butt.

Hope you can laugh at this. :) Spelling errors is just one of those
things. I, being non-English, probably do my fair share, and wouldn't
think I would spot something like a misspelling leading to a
humourously inappropriate use of the "-ize" suffix.
I'm sure there is a program somethere on the internet. If anyone can
point me to one it would be great.
I have a log file which contains regular entries as well as some XML
formatted info.
If the log is written by a well used application, then I think your
best shot is to look for an existing log analyzer specifically for
that application, and then extend it yourself. I doubt there are any
generic log analyzers, that are flexible enough to handle your
requirements.
I need XML formatted stuff. Is there an easy way to pull xml data from
this file and process it?
Depends on the format of the regular entries. Hopefully they are
"neat", in which case the beginning and end of the xml might be easily
spotted. But difficult to say without a sample of the log.
P.S. I'm not very proficient with XML parsing and processing - any tips
will help


Hopefully you can isolate the xml by itself, so you don't have to deal
with parsing the xml. If you use PHP5, then the simplexml extension
look sharp. Haven't tried it myself though.

http://www.php.net/manual/en/ref.simplexml.php
/Bent
Jan 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: JW | last post by:
I'm displaying product thumbnails with brief descriptions on web pages. Clicking on the product does a javascript popup with larger image and detailed description info passed to the javascript...
0
by: PatchFactory Support | last post by:
Description: Professional and easy-to-use patch building environment that can help you to create instant patch packages for software and file updating. Generated patch packages are small size...
3
by: news.west.cox.net | last post by:
I want to check a directory, see if there are any files in it... then open each one and do something. I have this... files = os.listdir('/direcory') if len(files) > 0: for file in files: f1...
0
by: | last post by:
I don't know SQL at all, but I have a problem now because I must use SQL in my PHP scripts. So please help me! I have 2 tables: id | name ----------- 1 | thing1 2 | thing2 3 | thing3 4 ...
8
by: Adam Clauss | last post by:
I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way to get them all added to the solution. Preferable would be that the...
2
by: Thomas | last post by:
Hi, I there anybody here that are designing applications with asp.net without html in aspx files? The problem is that aspx files is a dependency, and I would like to avoid having that...
23
by: **Developer** | last post by:
Is there an easy way to copies all files in a directory into another directory? What about coping subdirectories too? Thanks in advance for any info
8
by: Frank | last post by:
Is there and easy way to read .bmp files in native C++? How about .jpg files? Thanks in advance
6
cjbrx3115
by: cjbrx3115 | last post by:
Hey everyone, I just bought a new Windows Vista (Home Premium) computer. My old computer, a Windows XP Professional, had all of my old documents, spreadsheets, etc. I was planing on using the Easy...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.