I need help with a bash script that will concat 3 log files and bring back some usefull information
Here is a sample of the data that is in the files
2006-03-28 13:47:07,669: user login: test
2006-03-28 14:03:06,156: user timeout: johnsonr4
2006-03-28 14:03:06,314: user logout: johnsonr2
2006-03-28 14:10:53,206: user login: jonesg4
2006-03-28 14:10:57,817: user login: smithf3
Anything after the comma in the time is millisecond and can be ignored
I want to get a total number of log ins for a day and also get the total number of unique log ins for a day.
Any tips on how to do this or get started would be appreciated.
The first thing I need to find out if how to import this data from .log files and how to go about manipulating it