Go to All Forums

[Feature Request] New log type

I sent an email to support, but I just got an automatic answer back, so I am forced to write my request here.

We want to use AppLogs feature, but our app generate logs by the following pattern: it creates log files with names those contain date, for example, 20190922. Every day it creates a new log file. A log file itself does not contain date field, only time. We want to analyse such logs, but www.site24x7.com/ doesn not support such log types / cases. Is it possible to implement this in the future?

 

P.S. It's impossible to sign in to the community, every time i do this I get an error. Please fix it.

Like (3) Reply
Replies (15)

Hi Guest,

P.S. It's impossible to sign in to the community, every time i do this I get an error. Please fix it.

Can you please let us know what error you are getting?

Like (0) Reply

Hello! I get an error 'We have encountered a problem while executing your request. Please contact support for assistance.' after filling my email and pressing proceed button. Maybe it helps - our site24x7 account is registred on site24x7.eu, but when I try to log in the system forward me to the next URLs:

1. Pressing Login: www.site24x7.com/login.html?serviceurl=%2Fcommunity%2F

2. Then I am redirected to www.site24x7.eu/login.html?serviceurl=%2Fcommunity%2F

3. Then I am redirected to www.site24x7.eu/login.html?serviceurl=%2Fcommunity%2Fwww.site24x7.eu/community/ and see the error above.

Like (0) Reply

I can't edit replies so here is the correct third item:

3. Then I am redirected to www.site24x7.eu/community/ and see the error above.

 
Like (0) Reply

Hi,

Yes. We have plans to support taking the date from the filename or from the folder, and time from the logline.

Can you give us some inputs about how your folder/filename will be? Will it contain any other string part of the folder/file which contains the date? Any additional information will help us to consider your case while developing it.

We will update here once we are ready with the release.

Regards

Franklin

Site24x7 Team.

Like (0) Reply

Hi! That's great news!

Here are the details:

1. We have several folders, in which our app writes log files, for example:

C:\Platform\logs

C:\Platform\plugin_1\logs

C:\Platform\plugin_2\logs

2. Each folder above contains log files with the following names: 20191124.log (yyyyMMdd.log) or 20191203_info.log (yyyyMMdd_info.log).

3. Each log file might have its own fields, but they does not contain a date field only time, something like that: 00:00:00.016 (HH:mm:ss:SSS).

Like (0) Reply

Hi,

Thanks for sharing the details. We will consider the details shared in our development process.

 

Will update here once we release this feature.

 

Regards

Franklin

Site24x7 Team.

Like (0) Reply


Hi,

We have provided the support for taking the date from the folder/filename and time from the log line. Please refer the below help doc for configuring the date only log type.

https://www.site24x7.com/help/log-management/add-log-type.html#date-folder-file

 

Regards,

Magesh

Site24x7 Team

Like (0) Reply

Thank you very much! We'll dive into this and start using this feature :)

Like (0) Reply

Hi! It doesn't work because it's not possible to save a custom log type that contains such date definition. I think developers didn't take this into account - there is no date field in a sample log in such cases.

Like (0) Reply

Please look at ibb.co/zNNTMVh (I can't attach file here).

Like (0) Reply

Hi

   In the log pattern syntax "date" data type alone is case-sensitive but you have provided it as "Date" that's why it not worked. So please use the below log pattern for creating the log type.

$LogLevel:Number$ $DateTime:date:@file(yyyyMMdd)HH:mm:ss.SSS$ $IP:IP$ $Message$

 

If the logs are not collecting even after configured this log type please check the below steps.

  • Please make sure you are having the latest version of server monitoring agent(Windows: 19.4.6 & Linux: 17.5.5)
  • Check whether the AppLogs is enabled for that monitor. You can check this by navigating to Server -> "Monitor Name" -> AppLogs Tab.

 

 

Regards,

Magesh

Site24x7 Team

Like (0) Reply

It works, thank you! But there is still no discovered custom type logs despite I created correct log definition and corresponding log profile. Maybe I should to reach customer support.

Like (0) Reply

Hi,

    please contact support at support@site24x7.com with the below details.

  • Your Site24x7 account details.
  • Send our server monitoring agent logs that you have configured in the log profile. Agent logs will be present under ( Linux : /opt/site24x7/monagent/logs,  Windows : C:\Program Files(x86)\Site24x7\WinAgent\monitoring\logs )

 

Regards,

Magesh

Site24x7 Team

Like (0) Reply


Was this post helpful?