Skip to content

User Log Retention

All accounting data, authentication attempts, and logs can be accessed from the Logs tab. This tab does not contain any configurable settings and, aside from the dashboard, is the only tab accessible to users with the Mideye Operator role. More information about the different roles can be found here.

Database Retention Settings

Starting with Mideye Server 5.3, you can customize how long authentication logs are stored before they are deleted. The retention settings are divided into the following options:

  • retentionInDaysForAuthenticationLog
  • retentionInDaysForAuthenticationLogEntries

The default settings are 365 days for authentication logs and 30 days for authentication log entries.

Authentication logs can be viewed from the web GUI and will show all user authentication activity.

Log entries are more detailed and can be viewed from /Mideye Server 6/log or directly from the web-GUI under “Logs” followed by “Log Files”

Changing the values for database retention

Both settings for database retention can be changed from the application-prod.yml located in /Mideye Server 6/config/ folder. Open the file as an administrator and scroll to the very end of the code. If not already added, paste the following code:

cron:
  # cronExpression: '0 * * * * *'
  cronExpression: '0 0 * * * *'
  retentionInDaysForAuthenticationLog: 365
  retentionInDaysForAuthenticationLogEntries: 30

Change the value of retentionInDaysForAuthenticationLog and retentionInDaysForAuthenticationLogEntries to a desired value.

This will be executed as a cron-job using the following syntax

*    *    *    *    *    *
-    -    -    -    -    -
|    |    |    |    |    |
|    |    |    |    |    + year [optional]
|    |    |    |    +----- day of week (0 - 7) (Sunday=0 or 7)
|    |    |    +---------- month (1 - 12)
|    |    +--------------- day of month (1 - 31)
|    +-------------------- hour (0 - 23)
+------------------------- min (0 - 59)

where the default value cronExpression: 0 0 * * * * will execute the cron-job each day at midnight.

Save the file and restart the Mideye Server for changes to take effect.

Authentication logs

This view gives a detailed overview of the latest authentication attempts made by all RADIUS clients. The data can be sorted on:

  • Time
  • Username
  • RADIUS client
  • Authentication type
  • Msisdn (phone number or token)
  • Result (Successful or failed authentication)
  • Info

Accounting

The accounting page will show all successful logins with a timestamp. The accounting can also be exported to a csv-file.