# Metrics from structured logfile

**URL:** <https://discuss.elastic.co/t/metrics-from-structured-logfile/239167>\
**Category:** Beats\
**Created:** [June 29, 2020, 6:19pm UTC](https://discuss.elastic.co/t/metrics-from-structured-logfile/239167 "2020-06-29T18:19:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcel27](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcel27/32/78264_2.png) [@Marcel27](https://discuss.elastic.co/u/Marcel27)\
**Post date:** [June 29, 2020, 6:19pm UTC](https://discuss.elastic.co/t/metrics-from-structured-logfile/239167/1 "2020-06-29T18:19:46Z")

</div>

I have an application which logs periodicly to a file like:

```auto
{"field1": 21, "field2": 45, "utctime": "2020-06-26 13:48:36,", "event": "test1"}
{"field1": 62, "field2": 15, "utctime": "2020-06-26 13:53:36,", "event": "test2"}
{"field1": 12, "field2": 14, "utctime": "2020-06-26 13:58:36,", "event": "test3"}

```

In Kibana i want a listview with the "latest" values for each host:

```auto
 hostname field1 field2 
 hostname1 12 14   
 hostname2 24 34   

```

Do i have to write a metricbeat module for this  
(seems much work for simple requirement like this)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 27, 2020, 8:20pm UTC](https://discuss.elastic.co/t/metrics-from-structured-logfile/239167/2 "2020-07-27T20:20:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
