Skip to main content
Potato168
Explorer
November 6, 2024
Question

KB NOT WORK! Transferring historical logs from a FortiGate hard disk to a FortiAnalyzer

  • November 6, 2024
  • 4 replies
  • 2031 views

Hi all,

 

We have some old logs stored at Fortigate SSD, and we want to export those logs to FAZ to generate a report.

 

We found the KB and try to do the same:

 

https://community.fortinet.com/t5/FortiAnalyzer/Technical-Note-Transferring-historical-logs-from-a-FortiGate/ta-p/193850?externalID=FD40716

 

We have used "lz4_reader.tar.gz" to convert the log to readable format and change to .txt extension.

 

And we got this error when imported the log to the FAZ via Gui.

 

 

222.PNG

 

 

 

---- Update on 7th Nov, 2024.

 

 

After checking this issue with Fortinet TAC about the FAZ built-it log format, the FAZ log format is now required as :

 

[FirrwallSN].[VdomName].[tlog].[Date].[not sure what is it, just a random last Five numbers generated by Firewall?].log

 

If you follow that KB and try to import something from Fortigate, you might use a ReNamer " program to change all log naming formats.

 

I would like to share my script here for easier operation as well.

 

Hope this helps everyone who suffers the same issue when trying to import an old FGT log to FAZ.

 

Just import the KB format log to the program and you will get the correct naming:

 

 

KB Format:

 

ori.PNG

 

MY Script to change the naming to correct format:

 

222.PNG

Success to import now:

 

HIW.PNG

 

 

 

 

 

 

 

4 replies

AEK
SuperUser
SuperUser
November 6, 2024

Hello

Did you check if the log file is actually readable?

If so, can you share few lines from the log file?

AEK
Potato168
Potato168Author
Explorer
November 6, 2024

If I change the filename to "disk-tlog.log" , the file can be uploaded and passed.

Also, we can find the traffic details on FAZ then.

 

But there are numerous log files, I don't want to change and upload them one by one. If we change and upload it one by one, the new one will overwrite the old one and lose the logs.

Not worked as expect.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!