Question; AWK to analyze Windows Server 2k3 logs

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Question; AWK to analyze Windows Server 2k3 logs
# 1  
Old 05-31-2010
Question Question; AWK to analyze Windows Server 2k3 logs

Hey,

I am looking in to the possibility of trying to analyze Windows Server 2003 files by using the AWK filtering(programming) language, first off. Secondly I'm looking in to the possibility of implementing AWK (results/or the script itself) inside a "Microsoft Access 2007"-database.

Some questions arise, however, questions which I cannot answer. I hope you experts here can help me out with answering these questions.

First off, some core questions as to the possibility of filtering eventlogs with AWK:
  • Is it (even) possible to filter W2k3 Evenlogs with AWK?
  • How would I go "defining" the structure of the Eventlog within AWK?
Secondly, questions about the implementing of AWK within an Access 2007-database(wierd, I know):
  • Is this even possible?!
  • If yes, how would go about doing this? If no, why?
  • How would Access know how to interpet a AWK script?
Why would I ask such wierd/(I think)unheard questions? Because I am in a project at the moment and am kind of stuck with the requirement of having to implement the statistical data of the Eventlog files from a Windows Server 2003-machine into a existing Microsoft Access 2007-database. I really hope someone could answer these questions, as I am in a bit of a predicament.

The deadline is 2 weeks from now, and I can't come up with any psuedo code first off, for the AWK script to get the nesc. data. Secondly, I can't think(or find) anyway of letting a AWK-script work in a Access environment.

I also can't think of a way of how to get the statistical data from AWK(a unix machine) to Access 2007(a windows system).


Thanks for you time,

- abc
# 2  
Old 05-31-2010
Quote:
Originally Posted by abciscool
* Is it (even) possible to filter W2k3 Evenlogs with AWK?
Directly? I doubt it. I do know that it's possible to export the eventlog data to text files, but I wouldn't know how to (possibly) automate this. awk itself can only operate on text data.

Quote:
Originally Posted by abciscool
* How would I go "defining" the structure of the Eventlog within AWK?
Exported, it's a simple CSV file.
Quote:
Originally Posted by abciscool
Secondly, questions about the implementing of AWK within an Access 2007-database(wierd, I know):
* Is this even possible?!
Maybe as an extension. But I doubt that this would be doable by a single person on a 2 weeks deadline.
Quote:
Originally Posted by abciscool
* If yes, how would go about doing this? If no, why?
Again, it might be possible as an extension-DLL. Or maybe even using a VBscript macro. But not with a 2 weeks deadline.
Quote:
Originally Posted by abciscool
* How would Access know how to interpet a AWK script?
It doesn't.

You might be a lot faster if you wrote a small awk script to transform the exported data to a format compatible with the existing "database", import the file(s) directly, and do any statistics inside the DB using SQL.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Monitoring windows logs

is it possible to monitor log files that are on a windows server, from a linux/unix host? i'm thinking that the directory that the files are located in on windows can be be mounted on the linux host, and then a script or tool can just monitor the log as though it were local? any thing wrong... (3 Replies)
Discussion started by: SkySmart
3 Replies

2. Shell Programming and Scripting

Perl script to parse multiple windows event logs.

Hi all, I am developing a log parsing agent in perl to send windows Event logs to Zenoss Monitoring tool. Using Win32::EventLog i can able to get the Event messages but only one Eventype eg Application or System could able to parse at a time. Can you please help to how to open mutiple eventlogs... (3 Replies)
Discussion started by: kar_333
3 Replies

3. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

4. AIX

How to send AIX logs to windows

good day all how to send aix syslogs to a shared folder in windows regards , (2 Replies)
Discussion started by: thecobra151
2 Replies

5. Shell Programming and Scripting

(yet another) copy files from windows to server question

Hi all, I spent the last few hours Googling for a solution without result, so here goes: I have Windows server 'source' that produces files that need to be copied to an external Linux server 'target'. I initiate this process from AIX server 'jobrunner'. An additional step is a Linux server... (2 Replies)
Discussion started by: whbos
2 Replies

6. UNIX for Dummies Questions & Answers

which is the best online tool to analyze vmstat logs

hi all which is best online tool to analyze the vmstat logs to measure the cpu performance (2 Replies)
Discussion started by: din_annauniv
2 Replies

7. Shell Programming and Scripting

Logs access in windows fetching the data from a unix server

How I can get the logs that are getting stored in specific location in unix server through an Apache web server installed in unix server? Requirement is to access the logs through the URL in windows browser without any access. (1 Reply)
Discussion started by: alvida
1 Replies

8. UNIX for Advanced & Expert Users

How to view the unix logs in windows ??

Hi ! I have a FTP site, where I softlinked my server log file. Now I want to view the logs in IE as I do in unix Some kind of free tool should be there, Can somebody provide me a pointer. Thanks. (0 Replies)
Discussion started by: dashok.83
0 Replies

9. Red Hat

accessing windows 2k3 partition from Linux Advance Server 3

Dear all i hav dual operating system ie windows 2003 and Red Hat Advance Server3 trying to mount windows partition on linux operating system using the following method 1)mkdir /mnt/windows 2)mount -t ntfs /dev/hda1 /mnt/windows mount: fs type ntf not supported by kernel and my kernel... (2 Replies)
Discussion started by: maooah
2 Replies

10. UNIX for Dummies Questions & Answers

Windows Server 2k3 vs. Unix

Are there any major differences in performance? Does any large corperation actually use Windows Server software instead of Unix for massive production jobs? i.e., could Amazon run their website on Win2k3 and IIS instead of Unix (and whatever web server they use)? (1 Reply)
Discussion started by: CapsuleCorpJX
1 Replies
Login or Register to Ask a Question