Security & privacy

Security logging that helps during an incident

When something goes wrong, logs are how you find out what happened. What to log, what never to log, and how long to keep it.

GloryTekSystems team3 Feb 2026 2 min read

A computer monitor showing open files on a blue screen

During a security incident the first questions are always the same: what happened, when, to which accounts and through which systems? Without good logs the honest answer is “we don’t know”, which is a bad position with customers and regulators. In India, CERT-In’s directions also require logs of ICT systems to be kept for 180 days.

What to log

  • Sign-ins, failed sign-ins, and password and MFA changes
  • Permission and role changes, and admin actions
  • Access to sensitive records, and bulk exports
  • API errors and authorisation failures
  • Changes to infrastructure, configuration and deployments

What never to log

Passwords, full card numbers, authentication tokens and unnecessary personal data should never reach your logs. Mask them at the source and test the masking, because logs are copied to many places and kept for a long time.

Make logs usable

Use structured logs with consistent fields, such as user, account, request ID and timestamp, send them to a central system and keep clocks synchronised. Alert on a short list of high-value signals, such as many failed sign-ins or a sudden bulk export, rather than on everything.

Written by the GloryTekSystems team

Our engineers and consultants write about what they see in real projects. Have a question about your own systems?

Ask us
GloryTek assistantQuick answers · automated

Hi, I’m the GloryTek assistant. Ask me about our services, pricing, timelines or industries.

Popular pages

↑↓ to move to open Esc to close