Re: [Architecture] Log Analyzer Tool logs are displayed in GMT

2016-06-14 Thread Dmitry Sotnikov
+1

Indeed, showing local (browser) time with clear timezone indication is the
best approach for the UI.

Dmitry
On Jun 13, 2016 9:32 AM, "Ishara Cooray"  wrote:

> With the workaround provided by Sameera, it shows the local TZ as below.
>
> *Welcome to the live log viewer.*
> *Mon Jun 13 2016 09:46:14 GMT+0530 (IST)
> org.wso2.carbon.core.deployment.DeploymentInterceptor*
>
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, Jun 13, 2016 at 11:47 AM, Sameera Ramasinghe 
> wrote:
>
>> @Ruwan
>>
>> Yah storing in epoch time is correct. But in the thread, it was mentioned
>> that in the DAS, the time is displayed as IST. That time is not relevent to
>> us. That's why I mentioned it is only the log published time to DAS :).
>>
>> On Mon, Jun 13, 2016 at 11:43 AM, Sameera Ramasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> as a quick work around, in main.js of the livelogviewer, there is a line
>>>
>>> var tempDay = new 
>>> Date(parseInt(obj[i].values._eventTimeStamp)).toUTCString();
>>>
>>>
>>> change it to
>>>
>>> var tempDay = new Date(parseInt(obj[i].values._eventTimeStamp)).toString();
>>>
>>> this will change the timezone to browser time zone.
>>>
>>> On Mon, Jun 13, 2016 at 11:32 AM, Sameera Ramasinghe 
>>> wrote:
>>>
 Hi,

 That IST time-zone showing in the DAS explorer is the time the logs are
 published to the DAS. Not the time contained in the logs. The log times are
 in the "eventimestamp" field as epoch time. So we need to convert this
 epoch time in JS level. I will work on a fix and let you know. If we can
 get the server time zone, we can do as Ruwan said.

 On Mon, Jun 13, 2016 at 11:27 AM, Ruwan Abeykoon 
 wrote:

> Hi All,
> The time zone is something we need on all the Log Analyzer gadgets to
> handle properly, in the same way.
>
> Why we can not get the server time zone in AWS?
>
> What time zone a user is interested while looking at the logs and
> errors. I think it is the server time zone. This is the time the logs are
> being printed in respective carbon.log (if any).
>
>
> Cheers,
> Ruwan
>
> On Mon, Jun 13, 2016 at 11:16 AM, Ishara Cooray 
> wrote:
>
>> (+ architecture)
>>
>>
>> On Mon, Jun 13, 2016 at 10:48 AM, Ishara Cooray 
>> wrote:
>>
>>> In fact, in cloud we cannot get the server time zone as hosted in
>>> AWS. So need to get the Browser Time Zone.
>>>
>>> *@Sameera,*
>>> Can we have this option in Log Analyzer Tool?
>>>
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> On Mon, Jun 13, 2016 at 10:20 AM, Ruwan Abeykoon 
>>> wrote:
>>>
 +1
 This should be based on Server Time Zone rather than Browser Time
 Zone, I guess.
 Or should there be an option to set the TZ as server or Browser ?
 If so all the Log Analyzer gadgets should have the same option.


 Cheers,
 Ruwan

 On Mon, Jun 13, 2016 at 10:02 AM, Ishara Cooray 
 wrote:

> Hi,
>
> In the Log Analyzer tool, the logs are shown with GMT time where
> as in DAS Data Explorer it is shown for me in IST.
>
> So i guess Log Analyzer Tool should show the localized time.
>
> *@Amila,*
> WDUT?
>
> Thanks.
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>



 --

 *Ruwan Abeykoon*
 *Associate Director/Architect**,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com

>>>
>>>
>>
>
>
> --
>
> *Ruwan Abeykoon*
> *Associate Director/Architect**,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>



 --
 *Sameera Ramasinghe*
 Software Engineer, WSO2 Inc.; http://wso2.com
 mobile: *+94 714489682*

>>>
>>>
>>>
>>> --
>>> *Sameera Ramasinghe*
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>> mobile: *+94 714489682*
>>>
>>
>>
>>
>> --
>> *Sameera Ramasinghe*
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> mobile: *+94 714489682*
>>
>
>
> ___
> Architecture mailing list
> Architecture@wso2.org
> 

Re: [Architecture] Log Analyzer Tool logs are displayed in GMT

2016-06-13 Thread Ishara Cooray
With the workaround provided by Sameera, it shows the local TZ as below.

*Welcome to the live log viewer.*
*Mon Jun 13 2016 09:46:14 GMT+0530 (IST)
org.wso2.carbon.core.deployment.DeploymentInterceptor*

Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Mon, Jun 13, 2016 at 11:47 AM, Sameera Ramasinghe 
wrote:

> @Ruwan
>
> Yah storing in epoch time is correct. But in the thread, it was mentioned
> that in the DAS, the time is displayed as IST. That time is not relevent to
> us. That's why I mentioned it is only the log published time to DAS :).
>
> On Mon, Jun 13, 2016 at 11:43 AM, Sameera Ramasinghe 
> wrote:
>
>> Hi,
>>
>> as a quick work around, in main.js of the livelogviewer, there is a line
>>
>> var tempDay = new 
>> Date(parseInt(obj[i].values._eventTimeStamp)).toUTCString();
>>
>>
>> change it to
>>
>> var tempDay = new Date(parseInt(obj[i].values._eventTimeStamp)).toString();
>>
>> this will change the timezone to browser time zone.
>>
>> On Mon, Jun 13, 2016 at 11:32 AM, Sameera Ramasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> That IST time-zone showing in the DAS explorer is the time the logs are
>>> published to the DAS. Not the time contained in the logs. The log times are
>>> in the "eventimestamp" field as epoch time. So we need to convert this
>>> epoch time in JS level. I will work on a fix and let you know. If we can
>>> get the server time zone, we can do as Ruwan said.
>>>
>>> On Mon, Jun 13, 2016 at 11:27 AM, Ruwan Abeykoon 
>>> wrote:
>>>
 Hi All,
 The time zone is something we need on all the Log Analyzer gadgets to
 handle properly, in the same way.

 Why we can not get the server time zone in AWS?

 What time zone a user is interested while looking at the logs and
 errors. I think it is the server time zone. This is the time the logs are
 being printed in respective carbon.log (if any).


 Cheers,
 Ruwan

 On Mon, Jun 13, 2016 at 11:16 AM, Ishara Cooray 
 wrote:

> (+ architecture)
>
>
> On Mon, Jun 13, 2016 at 10:48 AM, Ishara Cooray 
> wrote:
>
>> In fact, in cloud we cannot get the server time zone as hosted in
>> AWS. So need to get the Browser Time Zone.
>>
>> *@Sameera,*
>> Can we have this option in Log Analyzer Tool?
>>
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> On Mon, Jun 13, 2016 at 10:20 AM, Ruwan Abeykoon 
>> wrote:
>>
>>> +1
>>> This should be based on Server Time Zone rather than Browser Time
>>> Zone, I guess.
>>> Or should there be an option to set the TZ as server or Browser ? If
>>> so all the Log Analyzer gadgets should have the same option.
>>>
>>>
>>> Cheers,
>>> Ruwan
>>>
>>> On Mon, Jun 13, 2016 at 10:02 AM, Ishara Cooray 
>>> wrote:
>>>
 Hi,

 In the Log Analyzer tool, the logs are shown with GMT time where as
 in DAS Data Explorer it is shown for me in IST.

 So i guess Log Analyzer Tool should show the localized time.

 *@Amila,*
 WDUT?

 Thanks.
 Ishara Cooray
 Senior Software Engineer
 Mobile : +9477 262 9512
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

>>>
>>>
>>>
>>> --
>>>
>>> *Ruwan Abeykoon*
>>> *Associate Director/Architect**,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ruw...@wso2.com
>>>
>>
>>
>


 --

 *Ruwan Abeykoon*
 *Associate Director/Architect**,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com

>>>
>>>
>>>
>>> --
>>> *Sameera Ramasinghe*
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>> mobile: *+94 714489682*
>>>
>>
>>
>>
>> --
>> *Sameera Ramasinghe*
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> mobile: *+94 714489682*
>>
>
>
>
> --
> *Sameera Ramasinghe*
> Software Engineer, WSO2 Inc.; http://wso2.com
> mobile: *+94 714489682*
>
___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


Re: [Architecture] Log Analyzer Tool logs are displayed in GMT

2016-06-13 Thread Ruwan Abeykoon
+Miyuru, Dunith

On Mon, Jun 13, 2016 at 11:43 AM, Ruwan Abeykoon  wrote:

> Hi Sameera,
> Yes, storing the time in "epoch time" is correct.
>
> Its the presentation which should depend on "Locale"
>
> The disagreement here is which is the time zone we select to display
> (Server vs Browser), each choice seems having valid use cases.
>
> Cheers,
> Ruwan
>
> On Mon, Jun 13, 2016 at 11:32 AM, Sameera Ramasinghe 
> wrote:
>
>> Hi,
>>
>> That IST time-zone showing in the DAS explorer is the time the logs are
>> published to the DAS. Not the time contained in the logs. The log times are
>> in the "eventimestamp" field as epoch time. So we need to convert this
>> epoch time in JS level. I will work on a fix and let you know. If we can
>> get the server time zone, we can do as Ruwan said.
>>
>> On Mon, Jun 13, 2016 at 11:27 AM, Ruwan Abeykoon  wrote:
>>
>>> Hi All,
>>> The time zone is something we need on all the Log Analyzer gadgets to
>>> handle properly, in the same way.
>>>
>>> Why we can not get the server time zone in AWS?
>>>
>>> What time zone a user is interested while looking at the logs and
>>> errors. I think it is the server time zone. This is the time the logs are
>>> being printed in respective carbon.log (if any).
>>>
>>>
>>> Cheers,
>>> Ruwan
>>>
>>> On Mon, Jun 13, 2016 at 11:16 AM, Ishara Cooray 
>>> wrote:
>>>
 (+ architecture)


 On Mon, Jun 13, 2016 at 10:48 AM, Ishara Cooray 
 wrote:

> In fact, in cloud we cannot get the server time zone as hosted in AWS.
> So need to get the Browser Time Zone.
>
> *@Sameera,*
> Can we have this option in Log Analyzer Tool?
>
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, Jun 13, 2016 at 10:20 AM, Ruwan Abeykoon 
> wrote:
>
>> +1
>> This should be based on Server Time Zone rather than Browser Time
>> Zone, I guess.
>> Or should there be an option to set the TZ as server or Browser ? If
>> so all the Log Analyzer gadgets should have the same option.
>>
>>
>> Cheers,
>> Ruwan
>>
>> On Mon, Jun 13, 2016 at 10:02 AM, Ishara Cooray 
>> wrote:
>>
>>> Hi,
>>>
>>> In the Log Analyzer tool, the logs are shown with GMT time where as
>>> in DAS Data Explorer it is shown for me in IST.
>>>
>>> So i guess Log Analyzer Tool should show the localized time.
>>>
>>> *@Amila,*
>>> WDUT?
>>>
>>> Thanks.
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Associate Director/Architect**,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>>
>
>

>>>
>>>
>>> --
>>>
>>> *Ruwan Abeykoon*
>>> *Associate Director/Architect**,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ruw...@wso2.com
>>>
>>
>>
>>
>> --
>> *Sameera Ramasinghe*
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> mobile: *+94 714489682*
>>
>
>
>
> --
>
> *Ruwan Abeykoon*
> *Associate Director/Architect**,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>



-- 

*Ruwan Abeykoon*
*Associate Director/Architect**,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ruw...@wso2.com
___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


Re: [Architecture] Log Analyzer Tool logs are displayed in GMT

2016-06-13 Thread Ruwan Abeykoon
Hi Sameera,
Yes, storing the time in "epoch time" is correct.

Its the presentation which should depend on "Locale"

The disagreement here is which is the time zone we select to display
(Server vs Browser), each choice seems having valid use cases.

Cheers,
Ruwan

On Mon, Jun 13, 2016 at 11:32 AM, Sameera Ramasinghe 
wrote:

> Hi,
>
> That IST time-zone showing in the DAS explorer is the time the logs are
> published to the DAS. Not the time contained in the logs. The log times are
> in the "eventimestamp" field as epoch time. So we need to convert this
> epoch time in JS level. I will work on a fix and let you know. If we can
> get the server time zone, we can do as Ruwan said.
>
> On Mon, Jun 13, 2016 at 11:27 AM, Ruwan Abeykoon  wrote:
>
>> Hi All,
>> The time zone is something we need on all the Log Analyzer gadgets to
>> handle properly, in the same way.
>>
>> Why we can not get the server time zone in AWS?
>>
>> What time zone a user is interested while looking at the logs and errors.
>> I think it is the server time zone. This is the time the logs are being
>> printed in respective carbon.log (if any).
>>
>>
>> Cheers,
>> Ruwan
>>
>> On Mon, Jun 13, 2016 at 11:16 AM, Ishara Cooray  wrote:
>>
>>> (+ architecture)
>>>
>>>
>>> On Mon, Jun 13, 2016 at 10:48 AM, Ishara Cooray 
>>> wrote:
>>>
 In fact, in cloud we cannot get the server time zone as hosted in AWS.
 So need to get the Browser Time Zone.

 *@Sameera,*
 Can we have this option in Log Analyzer Tool?

 Ishara Cooray
 Senior Software Engineer
 Mobile : +9477 262 9512
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 On Mon, Jun 13, 2016 at 10:20 AM, Ruwan Abeykoon 
 wrote:

> +1
> This should be based on Server Time Zone rather than Browser Time
> Zone, I guess.
> Or should there be an option to set the TZ as server or Browser ? If
> so all the Log Analyzer gadgets should have the same option.
>
>
> Cheers,
> Ruwan
>
> On Mon, Jun 13, 2016 at 10:02 AM, Ishara Cooray 
> wrote:
>
>> Hi,
>>
>> In the Log Analyzer tool, the logs are shown with GMT time where as
>> in DAS Data Explorer it is shown for me in IST.
>>
>> So i guess Log Analyzer Tool should show the localized time.
>>
>> *@Amila,*
>> WDUT?
>>
>> Thanks.
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
>
> *Ruwan Abeykoon*
> *Associate Director/Architect**,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>


>>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Associate Director/Architect**,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>>
>
>
>
> --
> *Sameera Ramasinghe*
> Software Engineer, WSO2 Inc.; http://wso2.com
> mobile: *+94 714489682*
>



-- 

*Ruwan Abeykoon*
*Associate Director/Architect**,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ruw...@wso2.com
___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


Re: [Architecture] Log Analyzer Tool logs are displayed in GMT

2016-06-12 Thread Ishara Cooray
(+ architecture)

On Mon, Jun 13, 2016 at 10:48 AM, Ishara Cooray  wrote:

> In fact, in cloud we cannot get the server time zone as hosted in AWS. So
> need to get the Browser Time Zone.
>
> *@Sameera,*
> Can we have this option in Log Analyzer Tool?
>
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, Jun 13, 2016 at 10:20 AM, Ruwan Abeykoon  wrote:
>
>> +1
>> This should be based on Server Time Zone rather than Browser Time Zone, I
>> guess.
>> Or should there be an option to set the TZ as server or Browser ? If so
>> all the Log Analyzer gadgets should have the same option.
>>
>>
>> Cheers,
>> Ruwan
>>
>> On Mon, Jun 13, 2016 at 10:02 AM, Ishara Cooray  wrote:
>>
>>> Hi,
>>>
>>> In the Log Analyzer tool, the logs are shown with GMT time where as in
>>> DAS Data Explorer it is shown for me in IST.
>>>
>>> So i guess Log Analyzer Tool should show the localized time.
>>>
>>> *@Amila,*
>>> WDUT?
>>>
>>> Thanks.
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Associate Director/Architect**,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>>
>
>
___
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture