# Making a visualisation from multiple searches

**URL:** <https://discuss.elastic.co/t/making-a-visualisation-from-multiple-searches/33372>\
**Category:** Kibana\
**Created:** [October 30, 2015, 2:03pm UTC](https://discuss.elastic.co/t/making-a-visualisation-from-multiple-searches/33372 "2015-10-30T14:03:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gjanger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gjanger/32/5594_2.png) [@Gjanger](https://discuss.elastic.co/u/Gjanger)\
**Post date:** [October 30, 2015, 2:03pm UTC](https://discuss.elastic.co/t/making-a-visualisation-from-multiple-searches/33372/1 "2015-10-30T14:03:59Z")

</div>

Hi,  
I played with kibana for the past 5 days but I'm unable to find how to do what I want, I'm starting to think that it's not possible

I have a huge log file that look like data

A logstash forwarder is sending it to logstash and logstash is feeding it to Elasticsearch.  
My logstash is configured this way :

> [@](#):
>
> ```
> multiline {
> pattern => "^%{GREEDYDATA}.%{GREEDYDATA}.%{GREEDYDATA}Exception:"
> what => "previous"
> }
> 
> grok {
> 
> match => [
> #general
> "message", "<(?<log_date>%{TIMESTAMP_ISO8601})> <%{GREEDYDATA:sender}> <%{GREEDYDATA:level}> <%{GREEDYDATA:class}> <%{GREEDYDATA:id}> <%{GREEDYDATA:msg}>",
> #general stacktrace
> "message","<(?<log_date>%{TIMESTAMP_ISO8601})%{GREEDYDATA:sender}>%{GREEDYDATA:stacktrace}"
> ]
> }
> 
> date {
> match => ["log_date","YYYY-MM-dd HH:mm:ss,SSS"]
> target => "log_date"
> }  
> 
> ```

I'm interested in 3 lines of log  
1 : msg = Sending to ELK  
2 : msg = ELK failure - rejected  
3 : msg = ELK failure due to us

I find them by searching for msg:"Sending to ELK" for example

So what I want to do is display a line graph with log\_date on the x axis and this on the y axis :  
(CountMsg1-(CountMsg2+CountMsg3))/(CountMsg1/100)

However in visualise it looks like I can only do one search, not multiple ones and not math operation.

Did I miss something?

Thanks

---

<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:** [October 31, 2015, 11:26pm UTC](https://discuss.elastic.co/t/making-a-visualisation-from-multiple-searches/33372/2 "2015-10-31T23:26:03Z")

</div>

Nope, you can't do it this way yet.  
You may be able to with a scripted field though.

---

<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:10pm UTC](https://discuss.elastic.co/t/making-a-visualisation-from-multiple-searches/33372/3 "2017-07-06T14:10:13Z")

</div>


