# Error : No supported date format found in log file(s).

**URL:** <https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [November 7, 2017, 1:17pm UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902 "2017-11-07T13:17:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyrill\_gremaud](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@cyrill\_gremaud](https://community.dynatrace.com/u/cyrill_gremaud)\
**Post date:** [November 7, 2017, 1:17pm UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/1 "2017-11-07T13:17:15Z")

</div>

Hello. I recently added custom log file to the apache2 process and Dynatrace is unable to display the content of log file. It perform the “Pre-processing log files” and return the error : No supported date format found in log file(s).

How must I configure my log file with correct date ? Below some example of log entries.

```auto
[SERVICEPERFDATA] 1510060541 U-AP-SPONTIS-32.44-PRO PING 4.004 0.000 PING OK - Packet loss = 0%, RTA = 0.21 ms rta=0.212000ms;200.000000;600.000000;0.000000 pl=0%;20;60;0

```

or

```auto
[HOSTPERFDATA] 1510060512 U-AP-SPONTIS-32.34-PRO 4.003 PING OK - Packet loss = 0%, RTA = 0.22 ms rta=0.221000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0

```

I think the second value is a timestamp. Maybe I can change it to other format.

Thank for your help

---

<div class="post-metadata">

**Author:** ![pawel\_brzoska](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pawel_brzoska/32/18892_2.png) [@pawel\_brzoska](https://community.dynatrace.com/u/pawel_brzoska)\
**Post date:** [November 8, 2017, 1:22pm UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/2 "2017-11-08T13:22:49Z")

</div>

It’s enough o have sth like this:

2017-11-08 14:22:00 UTC [HOSTPERFDATA] 1510060512 U-AP-SPONTIS-32.34-PRO 4.003 PING OK - Packet loss = 0%, RTA = 0.22 ms rta=0.221000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0

---

<div class="post-metadata">

**Author:** ![cyrill\_gremaud](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@cyrill\_gremaud](https://community.dynatrace.com/u/cyrill_gremaud)\
**Post date:** [November 9, 2017, 6:43am UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/3 "2017-11-09T06:43:31Z")

</div>

Hello. I successfully modified my nagios log output using the macro _$LONGDATETIME instead of $TIMET._

```auto
[SERVICEPERFDATA] Thu Nov 9 07:42:39 CET 2017 U-AP-SPONTIS-32.20-PRO PING 4.004 0.000 PING OK - Packet loss = 0%, RTA = 0.35 ms rta=0.354000ms;200.000000;600.000000;0.000000 pl=0%;20;60;0

```

---

<div class="post-metadata">

**Author:** ![robert\_stonham](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@robert\_stonham](https://community.dynatrace.com/u/robert_stonham)\
**Post date:** [November 16, 2017, 2:01pm UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/4 "2017-11-16T14:01:13Z")

</div>

Is it possible to provide a custom date time format? We have an application that outputs logs with the following date/time format but Dynatrace doesn’t seem to recognise it.

```auto
2017-11-16 12:35 +00:00: {"name":"content/service/repository/v1","hostname":"my.fqdn.host.name","pid":3980,"level":50,"msg":"price Error: insert or update on table \"price\" violates foreign key constraint \"price_id_fkey\"","time":"2017-11-16T12:35:45.799Z","v":0}

```

Rob

---

<div class="post-metadata">

**Author:** ![kannathal\_rm](https://avatars.discourse-cdn.com/v4/letter/k/6de8d8/32.png) [@kannathal\_rm](https://community.dynatrace.com/u/kannathal_rm)\
**Post date:** [November 24, 2017, 12:06pm UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/5 "2017-11-24T12:06:40Z")

</div>

Hi, I am getting the same error when i manually configured a log file. but the data in the log file is of xml format. I am able to detect errors in this file but unable to analyse the logs whereas i am able to download the log file from dynatrace console.

Could you please let me know what changes needs to be done in order to open the log contents also is it possible to expose this log file to service assurance tool.

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![pawel\_brzoska](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pawel_brzoska/32/18892_2.png) [@pawel\_brzoska](https://community.dynatrace.com/u/pawel_brzoska)\
**Post date:** [November 24, 2017, 6:35pm UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/6 "2017-11-24T18:35:01Z")

</div>

Can you paste an example log line here (or send it to me). Generally xml or json is not supported yet, but of the structure is simple enough to treat it as text, it can be doable.

---

<div class="post-metadata">

**Author:** ![kannathal\_rm](https://avatars.discourse-cdn.com/v4/letter/k/6de8d8/32.png) [@kannathal\_rm](https://community.dynatrace.com/u/kannathal_rm)\
**Post date:** [November 27, 2017, 8:22am UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/7 "2017-11-27T08:22:40Z")

</div>

Hi,

\<?xml version=“1.0” encoding=“UTF-8”?\>\<ns1:LogRequest xmlns:ns1="URL&nbsp;" xmlns:ns="URL&nbsp;" xmlns:ns="URL&nbsp;" xmlns:ns0123456789="URL&nbsp;" xmlns:soapenv="URL/&nbsp;" xmlns:tns1="URL&nbsp;" xmlns:ns0123="URL&nbsp;" xmlns:ns012345678910="URL&nbsp;" xmlns:ns="URL&nbsp;" xmlns:ns01="URL&nbsp;" xmlns:ns="URL&nbsp;" xmlns:ns0123456789="URL&nbsp;" xmlns:tns1="URL&nbsp;" xmlns:ns0123="URL&nbsp;" xmlns:ns012345678910="URL&nbsp;" xmlns:ns="URL&nbsp;" xmlns:ns01="URL&nbsp;" xmlns:ns="URL&nbsp;" xmlns:soapenv="URL/&nbsp;" xmlns:com3="URL&nbsp;" xmlns:org="URL&nbsp;" xmlns:com1=“URL” xmlns:com2="URL&nbsp;"\>  
\<!--You have a CHOICE of the next 4 items at this level--\>  
org:MSISDN447400011\</org:MSISDN\>  
org:Header  
com:CommonHeader  
com1:CorrelationId\_T100110011101\</com1:CorrelationId\_T\>  
com1:ActivityName\_TIH001-CheckpointService\</com1:ActivityName\_T\>  
com1:MsgType\_TSynchronous\</com1:MsgType\_T\>  
com1:SourceIC1001-01-AS-GetOrganizationInfo-Starter\</com1:Source\>  
\<com1:MessageProp\_T /\>  
\<com1:Security\_T /\>  
com1:Timestamp2017-08-24T13:20:00-05:00\</com1:Timestamp\>  
\<com1:ConsumerInfo /\>  
\<com1:ProviderInfo /\>  
\</com:CommonHeader\>  
\</org:Header\>  
\</org:OrganizationInfo\_3DS\_Request\>\</ns:Transaction\>\</ns:Header\>\<Category\>RequestPayload\</Category\>\<Audit\>false\</Audit\>\</ns1:LogRequest\>

---

<div class="post-metadata">

**Author:** ![pawel\_brzoska](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pawel_brzoska/32/18892_2.png) [@pawel\_brzoska](https://community.dynatrace.com/u/pawel_brzoska)\
**Post date:** [November 28, 2017, 9:00am UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/8 "2017-11-28T09:00:42Z")

</div>

This format is not supported yet.

---

<div class="post-metadata">

**Author:** ![lauri\_pekkala](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@lauri\_pekkala](https://community.dynatrace.com/u/lauri_pekkala)\
**Post date:** [January 2, 2018, 1:15pm UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/9 "2018-01-02T13:15:01Z")

</div>

It should be configurable what kind of date format is accepted or Dynatrace should be more liberal with timestamps. Its really weird such a limitation for this product. We also had to modify our logs so that Dynatrace could recognise the files. However, we can’t read eg. our ecom platform logs at all with the current setup. Even if we fixed the timestamps, we would not be able to read the old logs.

---

<div class="post-metadata">

**Author:** ![pawel\_brzoska](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pawel_brzoska/32/18892_2.png) [@pawel\_brzoska](https://community.dynatrace.com/u/pawel_brzoska)\
**Post date:** [May 30, 2018, 12:35pm UTC](https://community.dynatrace.com/t/error-no-supported-date-format-found-in-log-file-s/8902/10 "2018-05-30T12:35:54Z")

</div>

> **[Log data formats (Logs Classic)](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/log-monitoring-configuration/log-data-format-classic)**
>
> This topic lists all the log formats supported by Log Monitoring.
