NidToolbox: IP Logger module 1.0.1

Due to human (non-bot) spam the first contribution of a user has to be reviewed and activated manually, all further contributions do not require this.
As long as a user does not have at least one reviewed and activated contribution, the user is unable to edit his profile, set a avatar, title picture or a signature.

Contains IP logger module for NidToolbox Light server tool-set. It allows for real time motoring and logging of all login and logout events. Highly customisable.

1573-nidtoolbox-design01-nid-64-png

IP Logger module

for NidToolbox Light

requries nid-core module available here


1586-default-violet-2-png



Provides ability to log Login and Logout events of your citizens, registering IP Address, time, date, steam ID, slg ID and more.



IP Logger module allows:

  • Registers each event of login, logout (or both) of each citizen connecting to your server.
  • Server owners may decide which events they want to monitor and where if at all to store the data.
  • Enabling of the features can be done via in-game commands or through editing of the settings file.
  • Target of the log can be set to server console, server log, NidToolbox log - none, some or all of these in any combination that suits the server owner.
  • Ability to create a comma-delimited .csv file for administrators who like to export their server data to external tools for analytics.
  • Can notify about players using same IP address.

Requirements:

As any module of NidToolbox set, it requires nid-core version 1.0.1+ module, available in the main forum thread: here


Settings files:

Config files are located at Mods\NidToolbox\Configs\IPLogger.json


Code
{
"Info1": "NidToolbox Light: IP Logger settings.",
"IPLoggerEnabled": true,
"LogLogouts": false,
"ReportInConsole": true,
"ReportInGameLog": false,
"MakeCSVFile": true,
"NotifySameIPs": false
}




Output files:


Output files (logs) are stored at Mods\Nidtoolbox\Logs\ChatLogger\


Log file name has a form of userName_ServerID.log i.e nidaren_SrvID-1.log and is per user.

Same IP Notifications:


When enabled online Admins will get a notification to their mailbox, when there are two players with same IP address.


Example output:

Code
Date Hour Event IP Address SteamID slg ID Server ID Character Name
28.09.2020 11:12:50 Login 123.456.7.8 11222222211111110 slg123455 1 nidaren
28.09.2020 11:14:56 Logout disconnecting 11222222211111110 slg123455 1 nidaren


Available commands:


/help IPLog

Displays information about all commands contained within this module.


/iplog-enable

Sets the whole module to enabled or disabled state

/iplog-enable bool trueFalse

Code
/iplog-enable true/false


/iplog-sameip

Enables or disables the notifications about users connecting from same IP Address. Disabled by default.

/iplog-sameip bool trueFalse

Code
/iplog-sameip true/false



/iplog-logouts

Sets the module to also register citizen's logouts. Set to true by default.

/iplog-logouts bool trueFalse

Code
/iplog-logouts true/false


/iplog-console

Sets the module to write to server console.

/iplog-console bool trueFalse

Code
/iplog-console true/false


/iplog-serverlog

Sets the module to write to server log - located at Server\Logs\ (default eco log).

/iplog-serverlog bool trueFalse

Code
/iplog-serverlog true/false


/iplog-csv

Enables or disables the comma delimited file with all the login and logout data, with user information. Disabled by default.

/iplog-csv bool trueFalse

Code
/iplog-csv true/false
  • Version 1.0.1

    Version 1.0.1

    • Added NotifySameIp togabble to the config. When set to enabled, Server Admins will be informed about players sharing same IP Addresses. Notification is sent to the "important" section of the mail in the upper left side of the screen. Starts as disabled;
    • Added requirement for nid-core module enforcement. If the module is not found or in wrong version, it will be reported to the server owner, instead of showing default net cryptic error message.
  • Version 1.0.0