1.

Solve : Security log files?

Answer»

Hi there
I have a query about gathering meaninful information from log files (user log in times, log out times etc) which have naming conventions.. such as YYYYYMMDD.TXT from a certain directory.
Is there any way of getting the user to input a particular FILE... e.g. 20090931.txt.. then using this as a variable ... and doing a FIND on it to display a list of results?
So what I want to do:

1. GET user to enter the file NAME they want meaningful log results on.
2. Search through this file for certain information (user log of info, log in info, special permissions etc)
3. Output these results to other .txt file(s) so we can view useful information.. the text file would have to be something like Logoffinfo_YYYYMMDD.txt, Logininfo_YYYYMMDD.txt etc.

Any help is appreciated here.
Thanks,
Laura
Quote from: newuserlh on November 25, 2009, 03:07:08 AM

1. Get user to enter the file name they want meaningful log results on.
type set /? on the COMMAND LINE. see /p option
Quote
2. Search through this file for certain information (user log of info, log in info, special permissions etc)
find, findstr. GNU tools like grep , awk all can do this job

Quote
3. Output these results to other .txt file(s) so we can view useful information.. the text file would have to be something like Logoffinfo_YYYYMMDD.txt, Logininfo_YYYYMMDD.txt etc.
>, or >> redirects to output.



Discussion

No Comment Found