Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
firestarter4711
New Contributor

Mixed up Timestamps in Netflow

Hi everbody,

 

I've got a strange issue regarding the timestamp when displaying exported netflow data from several fortigates with nfdump.

 

The issues's as follows:

I setup netflow in my main FGT90D running 5.2.3 and exported these data into a nfdump/nfsen collector/analyzer. Here I got flows which seemed to be first seen in future. First there'd been flows with a timestamp from september 13. Today in the morning the timestamps matched my time but up to now they're some 24 hours ahead.

 

So I setup another FGT100D with 5.2.3 and it's timestamps are around 5 hours and ten minutes ahead.

So I setup a third fortigate, another 100D with 5.2.4 and finally it's timestamps seem to match my actual time.

 

I'm researching this issue for several days now - meanwhile implementing an Cisco 3620 Router - netflow enabled and two distributed Switches from my ESX-Farm sending it's data into the collector - just to be sure that it's no general issue. Countless times I set up ntp configurations and configured timezones just to be sure.

 

But whatever I tried up to now, these timing offsets only are to be seen from the fortigates, especially from the two boxes running 5.2.3. What's a little bit worse is that the timeshift seem to vary - as wrote above from my FGT90D so that you even can't just calculate with a fix time offset to get it right.

 

One strange thing I discovered - but I don't know if it's by design or not because I no netflow-packet sepcialist. I captured those netflow packets from all three boxes and discovered the FGT100D running 5.2.3 is sending packets with a negative sysuptime value. The other two have positive ones. Don't know if it's just a byte-overflow issue or something like that.

 

Has anyone playing aroung with netflow seen anything like that and could give me a hint where to look next?

If it's important, my collector/analyzer is running nfdum/nfsen on debian 8 - if it got something to do with it.

6 REPLIES 6
emnoc
Esteemed Contributor III

Dumb Qs do you have ntp setup and the time validate? A lot of devices ( i.e Juniper ) requires  NTP is enabled 1st & b4 you run netfow or ipfix .

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
koelschman
New Contributor II

hello,

we have the same issue with a fg 1500d running 5.2.2, timeshifts with 1 or 2 days in the future. 

 

both systems, fg and server are managed by ntp. So time should be correctly.

 

Does anybody know about the reason

 

Regards

emnoc
Esteemed Contributor III

how far are the time off? a day a few mins or hours?

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
koelschman
New Contributor II

its not days, the time difference are days. approx 10 days.

 

dspelfrey

Hello,

 

I am seeing a similar issue with 5.2.4.

 

-bash-4.1$ nfdump -V nfdump: Version: NSEL-NEL1.6.11 $Date: 2013-11-16 09:04:43 +0100 (Sat, 16 Nov 2013) $

When I do: execute time, I see the correct time date stamp and that it is NTP synched. When I grab a PCAP from my Fortinet to nfdump sever, and view it in wireshark (Click analyze, decode as, Transport select destination 9985 and port as CFLOW).

I see the correct time stamps in the packet, so I am not sure if this is a Fortinet problem, or nfdump problem.

 

Today at ~ 10:30: Date first seen          Duration Proto      Src IP Addr:Port          Dst IP Addr:Port   Flags Tos  Packets    Bytes      pps      bps    Bpp Flows 2015-10-21 00:44:19.184 ....

Has anyone opened a ticket with Fortinet yet or posted anything yet here? [link]http://sourceforge.net/projects/nfdump/[/link]

 

What version of nfdump are you running?

chendrickson

I know this is a bit of an old thread, but it does not seem to have a resolution for it. I am also experiencing this issue. I am running FortiOS 5.2.1, 5.2.3, 5.2.5, and 5.2.6. On version 5.2.6, it was working for a short time, but after returning to the office after a weekend, it was off again. I have yet to be able to get it working again. 

 

I have a post on Nagios Network Analyzer forum as well, and they have no idea what could be causing it either. I have packet captured on both the Fortigate and the NA server and can see the netflow data coming into the server with the correct date and time. However, once ran through nfdump it outputs the incorrect datetimestamp. That would make me "assume" that it is an nfdump issue, but I am not sure. 

 

I am posting this here, already have a post on Nagios NA forums, and will hitup the sourceforge.net forums as well. If I find anything out, I will be sure to update this post. Also, if anyone might have an update on this, please respond.

Labels
Top Kudoed Authors