# JSON log format

**URL:** https://discuss.elastic.co/t/json-log-format/45567
**Category:** Logstash
**Created:** [March 28, 2016, 8:32am UTC](https://discuss.elastic.co/t/json-log-format/45567 "2016-03-28T08:32:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mykolaichenko](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@Mykolaichenko](https://discuss.elastic.co/u/Mykolaichenko)
#### Post date: [March 28, 2016, 8:32am UTC](https://discuss.elastic.co/t/json-log-format/45567/1 "2016-03-28T08:32:34Z")

</div>

Hi!  
I have filebeat, logstash and json log format in application.  
It looks like this:

> {"timestamp":1459152943492,"date":"Mar 28, 2016 10:15:43 AM","hostname":"hostname","username":"tomcat","level":"INFO","thread":"SimpleAsyncTaskExecutor-3","classname":"com.ju.source.download.service.DownloadServiceImpl","filename":"DownloadServiceImpl.java","linenumber":159,"methodname":"downloadSources","message":"full message here"}

How can i ship it to Elastic more quickly and maybe community have best practise for this?)

Not its working like this:

> if [type] == "json" {  
> json {  
> source =\> "message"  
> }  
> }

It works pretty good, but some problems goes on too:

1. I will not use any filters
2. Timestamp not matched to real field and matched as additional
3. Thats all 🙂

Maybe anyone have experience with json?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [March 28, 2016, 8:38am UTC](https://discuss.elastic.co/t/json-log-format/45567/2 "2016-03-28T08:38:40Z")

</div>

> Not its working like this:

Did you mean "now it's working like this" or did you actually mean that it isn't working?

About your questions:

1. We can't help without getting your full configuration and an example input event.
2. I don't understand the question fully, but it sounds like you don't have a date filter or that it's incorrectly configured. Again, seeing your configuration and example event would make it posisble to help.

---

<div class="post-metadata">

### Author: ![Mykolaichenko](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@Mykolaichenko](https://discuss.elastic.co/u/Mykolaichenko)
#### Post date: [March 30, 2016, 4:02pm UTC](https://discuss.elastic.co/t/json-log-format/45567/3 "2016-03-30T16:02:48Z")

</div>

Yep, its working now)  
I will find best practices for Json processing.

---

<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 6, 2017, 5:04am UTC](https://discuss.elastic.co/t/json-log-format/45567/4 "2017-07-06T05:04:42Z")

</div>


