Hi Ali, In latest stable version, heka uses "time" package and "Format" method to format strings with timestamp: https://github.com/mozilla-services/heka/blob/versions/0.9/plugins/elasticsearch/encoders.go#L284 https://github.com/mozilla-services/heka/blob/versions/0.9/plugins/elasticsearch/encoders.go#L410
That behaviour has been changed recently on dev and will be released with 0.10.0, heka started using github.com/cactus/gostrftime library to format timestamp string: https://github.com/mozilla-services/heka/blob/versions/0.10/plugins/elasticsearch/encoders.go#L313 However, initial load from Nanoseconds to time.Time struct is still done the same way. On Mon, Jun 29, 2015 at 7:26 PM, Ali <[email protected]> wrote: > Hi, all. > > I'm writing a custom output for Solr. The first input I'm using for this > is LogstreamerInput. It looks like the date being passed to the Sandbox > Encoder from read_message("Timestamp") is in nanoseconds. I'm trying to > figure out how to convert that to "YYYY-MM-DDThh:mm:ssZ" in the payload. I > see that the bundled Elasticsearch plug-ins do something similar, but I've > been unable to reverse engineer the good parts. :-) Any help? > > TIA, > Ali > > _______________________________________________ > Heka mailing list > [email protected] > https://mail.mozilla.org/listinfo/heka > > -- jarek@reijutsu:~$ fortune You have Egyptian flu: you're going to be a mummy. jarek@reijutsu:~$ fortune You now have Asian Flu.
_______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka

