Replies: 1 comment 8 replies
-
Hi @rgacz No yet ! for time, you can look LogTraffic metadata_timestamp... => https://github.com/FortiPower/PowerFGT/blob/master/PowerFGT/Public/log/traffic.ps1#L187 But yes, i can be a good idea to add Get-FGTLogEvent |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to get VPN logs using PowerFGT?
There is a command Get-FGTLogTraffic to get traffic logs, I haven't found a command to get system events (e.g. VPN) logs.
I can use Rest API, but then I don't know about a way how to show older logs.
If I use
(Invoke-FGTRestMethod -method "get" -uri "api/v2/log/disk/event/vpn" -filter "logid==0101039947,logid==0101039948,logid==0107045124,logid==0107045125").results
I get logs for short period only. I want to get older logs. How can I do this?
When using GUI, I can see FortiGate has these logs.
Beta Was this translation helpful? Give feedback.
All reactions