You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Alex Baranau (JIRA)" <ji...@apache.org> on 2011/08/23 07:31:29 UTC
[jira] [Commented] (FLUME-744) Update docs explaining difference
between %t and %{timestamp} escape codes
[ https://issues.apache.org/jira/browse/FLUME-744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13089278#comment-13089278 ]
Alex Baranau commented on FLUME-744:
------------------------------------
Hm.. it looks like there's no difference in %t and %{timestamp} actually:
case 't':
// This is different from unix date (which would insert a tab character
// here)
return Long.valueOf(getTimestamp()).toString();
and
if (tag.equals("timestamp")) {
return String.valueOf(getTimestamp());
}
Am I missing something?
(Btw, the second variant is better to use as it creates less object instances I think)
> Update docs explaining difference between %t and %{timestamp} escape codes
> --------------------------------------------------------------------------
>
> Key: FLUME-744
> URL: https://issues.apache.org/jira/browse/FLUME-744
> Project: Flume
> Issue Type: Task
> Components: Docs
> Affects Versions: v0.9.5
> Reporter: Jonathan Hsieh
> Priority: Minor
>
> FLUME-688 added a new escape code but did not update documentation describing the difference between two similar escapecodes -- %t and %{timestamp}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira