473,387 Members | 1,535 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,387 software developers and data experts.

Manipulating a Parsed Log

76
Working on a reporting tool to communicate with a tool a lot of our internal customers utilize. A new enhancement requested has been to re-order the log.

Each "ticket" has a status log that is stored as a CLOB in the database that on the output report we parse out client side to be in a more "intelligent" format that's far more legible than the strait dump of the log.

It ends up being something like

username logtime changetype

Right now when a change is made the stamp is just appended to the end of the CLOB. We can't change this method, but they want us to re-order the log. Right now it displays in the order it was appended which happens to be oldest to newest. They want it newest to oldest.

Is there any simple way I can parse out this string into an intelligent format and re-order it? The only way I can think of right now is a multi-dimensional array but that sounds extremely slow since this log is displayed for each ticket record and the report can display a lot of tickets at the same time.
Jan 22 '08 #1
1 1756
acoder
16,027 Expert Mod 8TB
How about using a struct?

Ideally, this log should be a table in the database so that you could just use an SQL query to sort the output.
Jan 23 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Y | last post by:
On a hired webserver, the php code that is in the files included with 'include_once' and 'include' command is not parsed. The php file which includes these parses just fine. The included php is...
2
by: Jim Williams | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** I'm working on a 3d engine system. I need to save/load data in the systems objects to/from XML files. When I say objects, I mean...
6
by: Daniel Loose | last post by:
Hello, I have this strange including problem: I want to read a piece of HTML, residing in some file, into a variable, not echo it out. So far so easy - but now the HTML contains a line of...
0
by: Gerrit Horeis | last post by:
Hi @all! I've got some problems with filling an arraylist with some Controls(Labels). When I have filled the arraylist I iterate through it then but cannot find the containing controls via the...
7
by: SevDer | last post by:
Do you have any idea why I am getting the following error? Invalid URI: The hostname could not be parsed. Inner stack trace at System.Uri.Parse() at System.Uri..ctor(String uriString, Boolean...
5
by: Massa Batheli | last post by:
Can anyone tell me why .php scripts are not parsed? PHP5 Apache 2 on windows php.ini short_open_tag = Off #For PHP 5: # Add to the end of the LoadModule section LoadModule php5_module...
0
by: Christian Heimes | last post by:
Wilbert Berendsen schrieb: It's really tricky . The class object doesn't exists yet. It's created after all functions are parsed and created. You have can walk up the stack frames but it's ugly....
4
by: poisonedapple | last post by:
Hi , I have posted this in one of my other thread but I am posting it again since it is infact on a different topic I got the table extracted and I have a huge document full of tables. From...
3
by: Wilson | last post by:
Hi, I'm wondering if there are any tools available or simple methods for taking a python source file and parsing into some hierarchical format, like the ConfigParser. I'd like to be able to do...
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: 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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.