# Logstash Json logfiles vs Dynatrace

**URL:** <https://community.dynatrace.com/t/logstash-json-logfiles-vs-dynatrace/20994>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [June 15, 2019, 11:51am UTC](https://community.dynatrace.com/t/logstash-json-logfiles-vs-dynatrace/20994 "2019-06-15T11:51:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 15, 2019, 11:51am UTC](https://community.dynatrace.com/t/logstash-json-logfiles-vs-dynatrace/20994/1 "2019-06-15T11:51:18Z")

</div>

Hi,

When you implement logstash, Dynatrace is unable to read the replaced logfile, the new format is son,

Is it the one or the other?

KR Henk

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [June 15, 2019, 4:01pm UTC](https://community.dynatrace.com/t/logstash-json-logfiles-vs-dynatrace/20994/2 "2019-06-15T16:01:58Z")

</div>

I don’t understand your case. You are monitoring logstash and you want read logs that are created by this technology or you want to export some data to logstash?

Sebastian

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 16, 2019, 7:30am UTC](https://community.dynatrace.com/t/logstash-json-logfiles-vs-dynatrace/20994/3 "2019-06-16T07:30:43Z")

</div>

Hi Sebastian,

my mistake: customer lets tomcat log in json format, I think to make live easy for logtash. So my question should have been, is dynatrace capable of reading json logs. And I think the answer will be no, or not yet?

KR Henk

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [June 16, 2019, 10:49am UTC](https://community.dynatrace.com/t/logstash-json-logfiles-vs-dynatrace/20994/4 "2019-06-16T10:49:04Z")

</div>

Hello,

according to documentation:

> **[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.

JSON Formats are supported as well.

Sebastian

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [June 16, 2019, 12:03pm UTC](https://community.dynatrace.com/t/logstash-json-logfiles-vs-dynatrace/20994/5 "2019-06-16T12:03:57Z")

</div>

Henk,

Check out the timestamp requirements on this page and make sure those are met:

> **[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.

HTH,

dave

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 17, 2019, 8:11am UTC](https://community.dynatrace.com/t/logstash-json-logfiles-vs-dynatrace/20994/6 "2019-06-17T08:11:54Z")

</div>

Hi,

The json log contains a timestamp, is not marked as having an invalide date format but still,

Your search didn’t return any log matches for the selected time frame

So could the conclusion be that the format is fine, but Dynatrace can not handle the invalide content of the date field?

See a example log line:

{“clientip”:“xx.xx.xx.xxx”,“timestamp”:“[17/Jun/2019:00:00:00 +0200]”,“request”:“GET /xxxxxxx/api/internal/v1/xxxxxxxxxxxxxx=xxxxxxxx=xxxxxxxxxxxxx=true HTTP/1.1”,“urlpath”:“/xxxxxx/api/internal/v1/xxxxxxxx”,“urlquery”:“?xxxxxxxxx=xxxxxxx&xxxxxxxxxxx=XXXXXX&xxxxxxx=true”,“protocol”:“HTTP/1.1”,“method”:“GET”,“port”:8080,“status”:200,“bytes”:12,“duration”:57,"xxxxxxxxx:“xxxxxxxxxxxxxxxxx”,“xforwardedFor”:“xx.xx.xx.xx”}

 ![20969-1560758658562.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/4/448cef734ecac9405bf9c54f2afbbe6fa5ec9911.png)

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [June 17, 2019, 8:13am UTC](https://community.dynatrace.com/t/logstash-json-logfiles-vs-dynatrace/20994/7 "2019-06-17T08:13:50Z")

</div>

In link that I’ve provided is info that in JSON there is only one timestamp format that can be used (at least for now). Your is different so yes, log is ok but without proper detection of date you cannot search it.

Sebastian
