Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Convert CrowdStrike Timestamps to Local Time in Excel

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

CrowdStrike Falcon exports event data with timestamps in Coordinated Universal Time (UTC). To analyze security incidents against your local business hours, you must convert these UTC values to your specific time zone within Excel. This guide explains how to parse the ISO 8601 format used by CrowdStrike and apply the correct offset for accurate local reporting.

What You'll Need

  • An Excel file containing CrowdStrike event logs with a timestamp column (usually labeled event_time, timestamp, or created_at).
  • Knowledge of your target time zone's current offset from UTC (e.g., UTC-5 for Eastern Standard Time).
  • Excel installed on Windows or Mac (the formulas below work in both modern versions).

Step-by-Step

  1. Inspect the raw timestamp format. Look at a sample cell in your timestamp column. CrowdStrike typically uses the ISO 8601 standard, which looks like this: 2023-10-27T14:30:00Z. The "Z" indicates Zulu time, which is another name for UTC. If your data lacks the "Z" but is still UTC, note that fact, as it changes the parsing method slightly.
  2. Ensure the column is treated as text initially. Sometimes Excel auto-formats these strings into dates incorrectly. Select the timestamp column, go to the Data tab, click Text to Columns, select Delimited, and finish without changing anything. This forces Excel to treat the content as text strings before conversion.
  3. Create a helper column for parsing. In the adjacent empty column (let's assume your timestamp is in cell A2), enter a formula to remove the "Z" and convert the remaining string into an Excel serial date number. Use this formula: =VALUE(SUBSTITUTE(A2,"Z","")). Note: This simple substitution works if the format is strictly YYYY-MM-DDTHH:MM:SS. However, Excel often struggles with the "T" separator. A more robust approach is using the DATEVALUE and TIMEVALUE functions combined with text manipulation.
  4. Use a robust parsing formula. Replace the previous attempt with this comprehensive formula in cell B2 to correctly handle the ISO format: =DATE(VALUE(LEFT(A2,4)), VALUE(MID(A2,6,2)), VALUE(MID(A2,9,2))) + TIME(VALUE(MID(A2,12,2)), VALUE(MID(A2,15,2)), VALUE(MID(A2,18,2))). This breaks down the year, month, day, hour, minute, and second manually, avoiding locale-specific parsing errors.
  5. Format the result as a Date/Time. The result in column B will look like a number (e.g., 45226.60416). Select cell B2, press Ctrl+1 (or Cmd+1 on Mac) to open Format Cells. Choose Date or Custom and select a format like yyyy-mm-dd hh:mm:ss.
  6. Apply the time zone offset. Now that you have a clean UTC datetime value, subtract or add the hours difference between UTC and your local time. For example, if you are in New York during Standard Time (UTC-5), create a new column C with the formula: =B2 - 5/24. Dividing by 24 converts hours into the fractional days Excel uses for time calculations.
  7. Adjust for Daylight Saving Time (DST) if necessary. If your data spans periods where DST changes, a static offset won't be accurate. For complex scenarios, use Excel's newer dynamic array functions or Power Query. For simple recent data, ensure you know if the specific date was in DST. If so, change the offset to -4/24 for Eastern Time. Repeat the formula down the column to convert all rows.

Common Mistakes

The most frequent error is assuming Excel automatically recognizes the ISO 8601 "T" separator. It often does not, leading to #VALUE! errors. Another common mistake is forgetting to divide the time zone offset by 24. Adding just "-5" instead of "-5/24" will shift the date by five full days, not five hours. Finally, users often overlook that CrowdStrike might export timestamps with milliseconds (e.g., ...:00.123Z). The manual parsing formula above ignores milliseconds; if precision matters, you must adjust the TIME function arguments to account for the decimal seconds.

Tips

If you have large datasets, consider using Power Query instead of cell formulas. Power Query can detect ISO 8601 formats natively and has built-in options to change time zones. Go to Data > Get Data > From Table/Range. Once in the Power Query Editor, select the timestamp column, go to the Transform tab, click Locale to ensure it's set correctly, then use Change Type > DateTime. Afterward, you can add a custom column with a time zone adjustment function if available in your version, or simply subtract the hours. This method is faster and less prone to calculation errors than dragging formulas across thousands of rows.

Troubleshooting

If you see #VALUE! errors in your parsing step, check the exact length of your timestamp string. Some CrowdStrike exports include microseconds or different separators. Use the LEN() function to verify the character count. If the length is greater than 19 characters (excluding the Z), your string contains extra data like milliseconds or timezone offsets embedded in the string itself (e.g., +00:00 instead of Z). Adjust the MID() positions in your formula accordingly. If the resulting date is wrong by exactly one day, check if your system's regional settings are interpreting the month/day order differently (MDY vs DMY). Force the order by explicitly extracting year, month, and day as shown in Step 4.

Frequently Asked Questions

Why does my timestamp show up as a number?

Excel stores dates and times as serial numbers where 1 represents one day. When you perform arithmetic on them, the result remains a number until you apply a Date or Time format to the cell.

Does CrowdStrike always use UTC?

Yes, the Falcon platform stores and exports event timestamps in UTC to maintain consistency across global deployments. You must always convert them to your local time for human-readable reports.

Can I use VLOOKUP for time zones?

You can create a lookup table mapping countries or cities to their UTC offsets. Then, use VLOOKUP or XLOOKUP to fetch the offset based on a location column in your data, making the conversion dynamic rather than hard-coded.

What if the timestamp includes milliseconds?

If your string looks like 2023-10-27T14:30:00.123Z, the TIME function in the manual formula needs adjustment. You can ignore the milliseconds for most security analysis, or extract them separately and add them back as a fraction of a second (milliseconds/86400000).