Quantcast
Channel: Micro Focus Forums
Viewing all articles
Browse latest Browse all 11924

Duplicate Events Database Collector Trusted Time

$
0
0
Hi Guys,

I am seeing a really strange issue with a collector I have written. It is designed to collect information from a database source (in this case Novell Access Governance Suite). The collector works fine, the sql returns the results expected. However as some of the details stored in the table being queried are historical I planned to set the event time to the date/time stamp from the results.

Code:

        if (this.col_DATE_TIME)
        {
                var dev_tm = this.col_DATE_TIME.replace(/\-/g, "\/");
                dev_tm = dev_tm.replace(/\./g, "\:");
                dev_tm = dev_tm.replace(/(\:\d+)$/, "");
               
                this.evtMsg = this.evtMsg + " Device Time:" + dev_tm;
               
                this.observedDate = new Date.parse(dev_tm);
                e.setDeviceEventTime(this.observedDate);
        }
instance.SEND_EVENT = true;
return true;

The code above works when I set the Trust Collector Time checkbox. However when this is done i see duplicate events for all events processed by the collector. If I choose not to trust the collector time then the events are stamped with the current time (as to be expected) and then there are no duplicates.

Have I missed something out for doing this?

Many Thanks in Advance.

Viewing all articles
Browse latest Browse all 11924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>