Radiator Server Documentation — latest

Timestamp Format

Time format fields for timestamp_format and rotated log filenames

Table of Contents
  • Timestamp Format
  • Date Fields
  • Time Fields
  • Offset Fields
  • Unix Timestamp Field
  • Common Modifiers
  • Examples
  • Error Handling

Timestamp Format

Radiator uses bracketed time format fields for the timestamp_format() filter and rotated-filename patterns. Literal text is copied to the output. Fields are written inside square brackets.

timestamp_format("[year]-[month]-[day]T[hour]:[minute]:[second]")

For example, the format above can produce:

2026-06-24T08:45:12

Date Fields

FieldDescriptionExample
[year]Calendar year2026
[month]Month number06
[day]Day of month24
[ordinal]Day of year175
[weekday]Day of weekWednesday
[week_number]Week number26

Time Fields

FieldDescriptionExample
[hour]Hour in 24-hour clock08
[minute]Minute45
[second]Second12
[subsecond]Fractional second123456789
[period]AM or PM marker for 12-hour outputAM

Offset Fields

FieldDescriptionExample
[offset_hour]UTC offset hour+03
[offset_minute]UTC offset minute00
[offset_second]UTC offset second00

Unix Timestamp Field

FieldDescriptionExample
[unix_timestamp]Unix timestamp in seconds1782290712

Common Modifiers

Add modifiers inside a field after the field name:

[field modifier:value modifier:value]

Common modifiers:

Modifier exampleDescription
[subsecond digits:3]Output three subsecond digits.
[offset_hour sign:mandatory]Always include + or - in the offset hour.
[month repr:long]Output the full month name.
[month repr:short]Output the abbreviated month name.
[weekday repr:long]Output the full weekday name.
[weekday repr:short]Output the abbreviated weekday name.
[year repr:last_two]Output the last two digits of the year.
[hour repr:12]Output a 12-hour clock hour.
[hour repr:24]Output a 24-hour clock hour.
[unix_timestamp precision:millisecond]Output Unix timestamp milliseconds.

Examples

Date:

[year]-[month]-[day]

Output:

2026-06-24

Timestamp with offset:

[year]-[month]-[day]T[hour]:[minute]:[second][offset_hour sign:mandatory]:[offset_minute]

Output:

2026-06-24T08:45:12+03:00

Filename-safe timestamp:

[year]-[month]-[day]T[hour]-[minute]-[second].[subsecond digits:3][offset_hour sign:mandatory][offset_minute]

Output:

2026-06-24T08-45-12.123+0300

Error Handling

Invalid field names or modifiers make the configuration invalid. Radiator validates timestamp_format() when it loads the pipeline. Radiator validates rotated-filename when it parses the file logger configuration.

Navigation
  • About Radiator software development security

  • Architecture Overview

  • Backend Load Balancing

  • Basic Installation

  • Built-in Environment Variables

  • Byte Size Units

  • Certificate Revocation Lists

  • Comparison Operators

  • Configuration Editor

  • Configuration Import and Export

  • Containers

  • Cron and interval timers

  • Data Types

  • Duration Units

  • Environment Variables

  • Execution Context

  • Execution Pipelines

  • Filters

  • Getting a Radiator License

  • Health check /live and /ready

  • High Availability and Load Balancing

  • High availability identifiers

  • HTTP Basic Authentication

  • Introduction

  • Linux systemd support

  • Local AAA Backends

  • Log storage and formatting

  • Management API privilege levels

  • Namespaces

  • Password Hashing

  • Password Rehashing During Login

  • Probabilistic Sampling

  • Prometheus scraping

  • PROXY Protocol Support

  • Radiator server health and boot up logic

  • Radiator sizing

  • Radiator software releases

  • RadiatorDB

  • RadiatorDB Backup

  • RadiatorDB CLI

  • RadiatorDB Installation

  • RadiatorDB REST API

  • Rate Limiting

  • Rate Limiting Algorithms

  • Reverse Dynamic Authorization

  • Service Level Objective

  • TACACS+ Authentication, Authorization, and Accounting

  • Template Rendering CLI

  • Timestamp Format

  • Timestamps

  • Tools radiator-client

  • TOTP/HOTP Authentication

  • What is Radiator?

  • YubiKey Authentication

  • YubiKey Context Variables