Need an c,c++,or java code for parsing the log files


 
Thread Tools Search this Thread
Top Forums Programming Need an c,c++,or java code for parsing the log files
# 1  
Old 10-05-2010
Java Need an c,c++,or java code for parsing the log files

need the code for c,c++,java for parsing the log file
# 2  
Old 10-05-2010
Which log file, what format is it in, and what have you tried so far.

Also, please try to sound a bit less demanding.
# 3  
Old 10-05-2010
hi.. MR.pludi..thanks a lot for providing response..
the log file is of text format..logs.txt..i have attached an instance of log file..i need an parser code to parse this kind of files..n analyse errors..the output must be of gui..plz help.n i lm sure that i look up ur suggestions while posting
# 4  
Old 10-05-2010
So you've tried nothing, and don't really want "UNIX help" as much as someone who'll happily cough up a premade GUI solution for you. Services like rent-a-coder would be a place to start.
# 5  
Old 10-06-2010
Power

hello corona..
actually im an new face for java..
the thing is that i have being assigned a task to develop an tool using java..
the tool must parse the input which is log file and is of text format..the output must be of gui..so plz put some light on this..this task is being assigned as an internship project in one of the company...plz help..
# 6  
Old 10-06-2010
There is a few misunderstanding here:
1) the forum rules says plain english, we all do an effort to stick to our best to this (English isnt my first language nor is it spoken where I work and live...), and so we expect the same from others too...
2)The fact that you can find some programs here doesnt mean all is granted: We expect from someone to try first, THEN ask for help, by submitting what one has done so far (and the occuring errors...). From then on you may find plenty of different propositions to test/try with people read to explain the code if not understood.
You have no excuse to NOT try, not knowing a language for instance, I dont know anything of C ( it doesnt stop me to have to debug C programs from time to time, but I know I cant write such code...). Beeing in this very forum (programming...) suggest you have some programming skills, there is nothing stopping you to submit what you know, and ask how it can be done in another language you dont master

All the best
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to get CRC check sum of files in java EAR file without extracting .jar/.war files to disk.?

unzip -v gives CRC info of each file in a zip(in my case .EAR) file. # unzip -v my-application.ear Archive: my-application.ear Length Method Size Cmpr Date Time CRC-32 Name -------- ------ ------- ---- ---------- ----- -------- ---- 197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies

2. Shell Programming and Scripting

Log parsing

I have a directory with daily logs that have records like this: Date: 04/17/13 Time: 09:29:15 IP: 123.123.123.123 URL: usr/local/file1 and I want to only count how many times each file was accessed (e.g. file1 in that example above), and I want to also look in all the logs in the current... (3 Replies)
Discussion started by: Jaymz
3 Replies

3. Shell Programming and Scripting

parsing log files in to a spread sheet

Hi Guyz, I need to extract only the data/time, uid , and the message at the last " invalid password format", to a spread sheet. this is one of the lines from a log file from which i need to extract them. i need this message to be clearly formatted in the spread sheet. can you please help me... (14 Replies)
Discussion started by: remo850
14 Replies

4. Shell Programming and Scripting

Block of code replacement in Java source code through Unix script

Hi, I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory. finally { if (null != hibernateSession && hibernateSession.isOpen()) { //hibernateSession.close(); } } It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies

5. Shell Programming and Scripting

Remove java code from multiple files

Hello, We have a client who has had an FTP injection attack on their account. Over 600 files have this code added to the files: <script>var t="";var... (10 Replies)
Discussion started by: dhasbro
10 Replies

6. Shell Programming and Scripting

need a code for moving the log files older than 2 months

Hi Viewer, I need logic code for moving the logs files from one directory to another directory. source :/xxxxxx/ xxxxxx / xxxxxx / xxxxxx / log --- under log directory we have so many files from last two years Here I need to check the files older than two months and I need to move in... (5 Replies)
Discussion started by: munna_su
5 Replies

7. Programming

can i have an optimal solution for this java code ? Facing Java heap space problem even at 3GB heaps

My desired output is run: for this 1 for this 2 for this 3 for this 4 for this 5 for this 1,2 1->2 for this 2,3 2->3 for this 3,4 3->4 for this 4,5 4->5 for this 1,2,3 1->2,3 (2 Replies)
Discussion started by: vaibhavkorde
2 Replies

8. Programming

parsing a database with java

hi all i have a databasewhich consists few fields in the form Time(starting from 0 in asc order) bytes service flags protocols e.g. 0, 0, 0, 56, 86 1, 524, 3, 6, 65 1, 624, 0, 43, 33 2, 72, 0, 43, 80 3, 26, 3, 6, 86 4, 323, 3, 1459, 95 5, 325, 3, 1459, 33 6, 225, 3, 1436, 57 now... (7 Replies)
Discussion started by: stuggler
7 Replies

9. Shell Programming and Scripting

parsing log files, removing spaces and replace with commas

Hello all i am working on a database to import log files from my systems, but i cannot seem to find the answer. I searched here for a good bit and couldnt peice together what i was looking for. I know you could do this with awk, i just dont know how. Any help would be greatly appreciated.... (6 Replies)
Discussion started by: caddyjoe77
6 Replies

10. Shell Programming and Scripting

Parsing log files, displaying logs between specific dates

Sorry, couldn't really think of a simple subject/title. So, I have a log file, and the dates are displayed like so: 2009-03-05 02:49:44 So the first and second field are the date/time. I can change them into a unix timestamp easily with: date -d "2009-03-05 02:49:44" +%s However,... (17 Replies)
Discussion started by: Rhije
17 Replies
Login or Register to Ask a Question