Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2009, 08:15 PM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default Bash script to filter logins from log files

I created this simple script so that I could parse the log files to see login activity on the server from the command line on the server.

The script parses the eqemu_debug_world.log file and returns a list of account names as well as date and time that they logged in.

Change the logfile="" line to point to your log file location.


Code:
#!/bin/bash

logfile="/opt/eqemu/logs/eqemu_debug_world.log";

grep Logged $logfile | awk {'print $6, $2, $3, $4'}

exit

The output of the script looks like so:

Code:
accountname: [12.04. - 12:52:58]
accountname2: [12.06. - 16:35:49]
accountname: [12.07. - 20:45:52]
anotheraccountname: [12.07. - 20:47:54]
Enjoy!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:25 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3