Generated by GPT-5-mini| logging (software) | |
|---|---|
| Name | Logging (software) |
| Developer | Various |
| Programming language | Various |
| Operating system | Cross-platform |
| Genre | Software engineering, Systems administration |
| License | Various |
logging (software)
Logging (software) records events and messages produced by Microsoft, Google, Amazon, Facebook, Apple Inc., Netflix, IBM, Oracle, Red Hat, Docker, Kubernetes, Elastic, Splunk, Datadog, New Relic, Prometheus, Grafana, HashiCorp, Atlassian, GitHub, GitLab, Twitter, LinkedIn, Salesforce, VMware, Intel, ARM, NVIDIA, Cisco, Juniper, Samsung, Sony, Siemens, Boeing, Lockheed Martin, SpaceX, Tesla and other organizations for diagnostics, auditing, and observability. Logs are ingested, stored, analyzed, and visualized by tools from Elastic Stack, Fluentd, Logstash, rsyslog, syslog-ng, systemd, journald, Windows Event Viewer, Azure Monitor, Google Cloud Logging, Amazon CloudWatch and third-party platforms used in production at NASA, European Space Agency, CERN, MIT, Stanford University, Harvard University, Princeton University, Caltech, Imperial College London, University of Oxford, University of Cambridge, ETH Zurich, Tsinghua University, Peking University, National University of Singapore and enterprises worldwide.
Logging provides structured or unstructured records for troubleshooting and incident response in systems operated by Department of Defense, NASA, ESA, World Health Organization, International Monetary Fund, World Bank, United Nations, European Commission, Bank of America, JPMorgan Chase, Goldman Sachs, Morgan Stanley, Citigroup, Barclays, Deutsche Bank, HSBC, UBS, Wells Fargo, Shell plc, BP, ExxonMobil, TotalEnergies, Chevron, Siemens, General Electric, Toyota, Volkswagen, Ford, Honda, Hyundai, BMW, Mercedes-Benz for monitoring application behavior, compliance, forensics, and business intelligence. Modern logging integrates with DevOps toolchains used by teams at Microsoft Azure, Amazon Web Services, Google Cloud Platform, Heroku, DigitalOcean, IBM Cloud, Oracle Cloud Infrastructure and leverages practices promoted by The Linux Foundation, OpenStack Foundation, Cloud Native Computing Foundation and standards advocated by IETF and ISO.
A typical logging architecture has instrumented applications, agents, collectors, aggregation pipelines, indices, and query interfaces used by engineers at Palantir, Snowflake, Confluent, Cloudera, Hortonworks, MapR, Splunk, Elastic, Sumo Logic, Loggly, Papertrail, VictorOps, PagerDuty, Opsgenie, and ServiceNow. Components include SDKs and libraries (for example from Apache Software Foundation projects like Apache Log4j, Apache Flume, Apache Kafka), system daemons (systemd-journald), transport protocols (TCP, UDP, HTTP, gRPC) and storage backends such as HDFS, Amazon S3, Google Cloud Storage, Azure Blob Storage, Ceph, GlusterFS, and relational or NoSQL systems like PostgreSQL, MySQL, MongoDB, Cassandra, Redis, DynamoDB.
Log management workflows employ collectors (Fluentd, Filebeat), parsers (Grok), enrichment services (GeoIP), indexing systems (Elasticsearch), long-term archives on Amazon S3 or tape at institutions like NARA and policy engines used by European Data Protection Board. Enterprises such as Walmart, Target, Costco, Amazon, eBay, Alibaba, JD.com, Rakuten, Shopify, Etsy, Stripe, PayPal, Square apply lifecycle management, retention, tiering and cold storage strategies. Log rotation utilities and compressors (gzip, zstd), deduplication, TTLs, shard allocation, replication and snapshotting are integrated with orchestration platforms from Kubernetes, Mesosphere and OpenShift.
Standardized levels (DEBUG, INFO, WARN, ERROR, FATAL) are implemented in libraries like log4j, logback, SLF4J, java.util.logging, python logging module, loguru and language-specific frameworks used in Java, Python, Go, Rust, C#, Node.js, Ruby, PHP, Perl ecosystems. Formats include plaintext, JSON, XML, Common Event Format (CEF), Log Event Extended Format (LEEF), and binary formats used by Apache Avro and Protocol Buffers; parsers and schema registries from Confluent and Schema.org help maintain consistency across organizations like Twitter, LinkedIn, Pinterest, Snap Inc..
High-throughput logging at companies such as Netflix, YouTube, Spotify, Twitch, Zoom, Slack, Dropbox, Box requires design for low-latency transport, backpressure handling, buffering, batching, compression, and horizontal scaling using message brokers like Apache Kafka, Amazon Kinesis, RabbitMQ, ActiveMQ. Reliability is engineered through replication, consensus algorithms (Raft, Paxos), monitoring via Prometheus, alerting via PagerDuty and capacity planning informed by A/B testing from Google and Facebook research teams. Benchmarks and chaos engineering practices promoted by Netflix's Chaos Monkey improve resilience in production.
Securing logs involves access controls (RBAC), encryption at rest and in transit (TLS, KMIP), key management by HashiCorp Vault, auditing for standards like ISO/IEC 27001, SOC 2, PCI DSS, HIPAA, GDPR, and national laws such as HIPAA and FISMA. Data masking, redaction, and tokenization are used by organizations like Equifax, Experian, TransUnion and financial institutions to protect Personally Identifiable Information (PII); compliance reporting integrates with governance tools from ServiceNow, SAS Institute, Oracle.
Common use cases include incident response at CERT, root cause analysis at Facebook, capacity planning at Amazon, security monitoring at FireEye and CrowdStrike, business analytics at Walmart Labs, Amazon Retail and A/B experimentation at Google and Microsoft Research. Best practices recommend structured logging, correlate traces with OpenTelemetry, retain contextual metadata (request IDs, user IDs from Okta), instrumentations for distributed tracing with Jaeger, Zipkin, and integrate logging into CI/CD pipelines with Jenkins, CircleCI, Travis CI, GitHub Actions and configuration management from Ansible, Puppet, Chef. Organizations follow SLAs, SLOs and observability standards promoted by CNCF and community projects hosted by The Linux Foundation.
Category:Software logging