# Exceptions chronology over the linked log records

**URL:** https://discuss.elastic.co/t/exceptions-chronology-over-the-linked-log-records/42860
**Category:** Kibana
**Created:** [February 26, 2016, 2:37pm UTC](https://discuss.elastic.co/t/exceptions-chronology-over-the-linked-log-records/42860 "2016-02-26T14:37:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dmitry\_Reshetnik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitry_reshetnik/32/88780_2.png) [@Dmitry\_Reshetnik](https://discuss.elastic.co/u/Dmitry_Reshetnik)
#### Post date: [February 26, 2016, 2:37pm UTC](https://discuss.elastic.co/t/exceptions-chronology-over-the-linked-log-records/42860/1 "2016-02-26T14:37:01Z")

</div>

Hi,  
There is a system with a lot of components. Each component has 1+ instances. And each instances writes each log file.

> Service1 (service1.[PID1].log)  
> Service2 (service2.[PID2].log)  
> Service3 (service3.[PID3].log)  
> Service4 (service4.[PID4].log)

There is a "main" service (for example Service1), which knows about all related instances. All log formats are the same.  
In "main" service logs there are records which related services PID.  
So I a set of files with PID in the name and I have some records with related PID in fields:

> {  
> "pid": "1",  
> "name": "Service1",  
> "timestamp": "....",  
> "referenced\_pid": "2"  
> }

> {  
> "pid": "1",  
> "name": "Service1",  
> "timestamp": "....",  
> "referenced\_pid": "3"  
> }

> {  
> "pid": "1",  
> "name": "Service1",  
> "timestamp": "....",  
> "referenced\_pid": "4"  
> }

> {  
> "pid": "2",  
> "name": "Service2",  
> "exception": ": ",  
> "timestamp": "...."  
> }

> {  
> "pid": "3",  
> "name": "Service3",  
> "exception": ": ",  
> "timestamp": "...."  
> }

> {  
> "pid": "4",  
> "name": "Service4",  
> "timestamp": "...."  
> }

What I want to do:  
I'd like to select all records from "Service1" and JOIN with all log records on "referenced\_pid" = "pid".  
And query some information from these logs.  
For example I'd like to build chronology of exceptions from logs:

1. take all logs from the system (it's 1 join described above)
2. select all exception and timestamp pairs
3. create some kind of linear diagram to be able to watch chronology and explore messages

Is that possible to do that?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [February 26, 2016, 7:21pm UTC](https://discuss.elastic.co/t/exceptions-chronology-over-the-linked-log-records/42860/2 "2016-02-26T19:21:45Z")

</div>

You cannot join with KB because ES does not natively support it.

---

<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, 2:00pm UTC](https://discuss.elastic.co/t/exceptions-chronology-over-the-linked-log-records/42860/3 "2017-07-06T14:00:59Z")

</div>


