← All articles
Microsoft Sentinel · Step-by-step guide

Ingest Historical Fortinet Logs into Microsoft Sentinel Using DCRs

Parse historical firewall events, preserve event timestamps and validate custom Log Analytics ingestion before writing detections.

Why this matters

When historical firewall logs are available only as exported files, the SOC may be unable to correlate them with identity and endpoint events during an incident. Importing them without preserving original timestamps or validating completeness can produce a misleading timeline.

This guide shows how to ingest historical Fortinet events into Microsoft Sentinel using a custom table and data collection rule, preserve the original event time and verify that the imported records support reliable investigation.

PRACTICAL WALKTHROUGH

What you'll accomplish

Parse and ingest historical Fortinet events into Sentinel while preserving original timestamps and checking ingestion completeness.

Before you begin

  • Authorised historical log files with source time zone documented
  • An Azure Monitor workspace, custom table and a suitable DCR/DCE route
  • Permissions to inspect ingestion errors and query the destination table

Verify the result: Compare raw and ingested record counts, query by OriginalEventTime and independently inspect TimeGenerated, parser mappings and error responses.

Understand historical timestamps before ingestion

Historical Fortinet security events need a trustworthy original event timestamp and a valid Azure Monitor ingestion timestamp. This guide shows how to design a custom Log Analytics table, map events with a data collection rule and validate the resulting records without backdating TimeGenerated beyond supported limits.

The approach below abstracts the method. It does not reproduce affected organisations, device names, configuration exports or original attack evidence.

Step 1 — Prepare the source logs and schema

Collect the files through an authorised incident evidence process. Keep the originals unchanged and record the source device, log format, time zone, clock accuracy and collection time. Parse the raw records into a consistent schema, for example EventTime, DeviceType, Action, SourceIp, DestinationIp, UserName and Message.

Make sure EventTime represents the event's actual UTC timestamp. If the input contains a local timestamp without an offset, document the assumed time zone rather than silently coercing it to UTC.

An example record sent to the Logs Ingestion API might look like this:

json
{
  "EventTime": "2025-02-12T10:30:00Z",
  "DeviceType": "fortinet",
  "Action": "admin-login",
  "SourceIp": "198.51.100.10",
  "DestinationIp": "203.0.113.20",
  "UserName": "example-admin",
  "Message": "Synthetic security event for parser validation"
}

These are documentation addresses and invented event contents, not original incident indicators.

Step 2 — Create the custom table and DCR mapping

Create the destination custom table, such as Fortinet_CL, with both a TimeGenerated datetime column and a distinct OriginalEventTime datetime column, plus the other fields required by detections. Use a Data Collection Rule (DCR) to declare the input stream and transformation. Depending on your configuration, the Logs Ingestion API can use the DCR ingestion endpoint or a Data Collection Endpoint (DCE).

The DCR transformation can map the input's event timestamp into the table's TimeGenerated column:

kusto
source
| extend TimeGenerated = now(), OriginalEventTime = todatetime(EventTime)
| project TimeGenerated, OriginalEventTime, DeviceType,
          Action, SourceIp, DestinationIp, UserName, Message

This is an illustrative transformation; align types and column names with your actual DCR and table. Validate your Azure resource permissions, stream name, token scope and endpoint URI before ingesting. Do not assume that a successful HTTP response proves that every field was mapped or that every record will be retained.

Step 3 — Validate ingestion and time ranges

After sending a small authorised test batch, confirm both the raw-input count and the query result. Use the OriginalEventTime field for the historical investigation window:

kusto
Fortinet_CL
| where OriginalEventTime between (datetime(2025-02-01) .. datetime(2025-03-01))
| summarize Rows=count(), Earliest=min(OriginalEventTime),
            Latest=max(OriginalEventTime), IngestedAt=max(TimeGenerated) by Action
| order by Rows desc

A historical record can appear in the workspace today with a 2025 OriginalEventTime and 2026 TimeGenerated. Search by OriginalEventTime when investigating the original event chronology, and constrain by ingestion-time/retention as appropriate. Check accepted time ranges, schema mapping, portal time-picker filters and API ingestion limits. Setting the workspace time picker only to February 2025 would miss records ingested today when their TimeGenerated is current.

Step 4 — Develop detections from validated records

Start with simple behavioral patterns and check their normalization first: unusual administrative sign-ins, new privileged administrators, administrative configuration access and repeated authentication failures. Validate the actual Fortinet message IDs and schema against the platform version before writing production detections.

Do not treat a hostname, jsconsole string or isolated admin event as compromise by itself. Correlate a sequence of authenticated actions, account context and timing with device-side and identity evidence. Record both supporting and contradictory facts.

Further reading