# Top URLs by response code\[Filebeat Apache\] ECS

**URL:** <https://discuss.elastic.co/t/top-urls-by-response-code-filebeat-apache-ecs/294961>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [January 20, 2022, 2:37pm UTC](https://discuss.elastic.co/t/top-urls-by-response-code-filebeat-apache-ecs/294961 "2022-01-20T14:37:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alphonse\_Kambo](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Alphonse\_Kambo](https://discuss.elastic.co/u/Alphonse_Kambo)\
**Post date:** [January 20, 2022, 2:37pm UTC](https://discuss.elastic.co/t/top-urls-by-response-code-filebeat-apache-ecs/294961/1 "2022-01-20T14:37:56Z")

</div>

Hello All,

I want to create in Canvas a pie chart that replicates the visualization "Top URLs by response code[Filebeat Apache] ECS".

 ![Top_URLs_by_response_code](https://us1.discourse-cdn.com/elastic/original/3X/9/b/9bfa4b858fea2c059a6c289bc1f89ede06221f71.png)

I have for the **Split chart** the following ES SQL:

SELECT url.original as url, count(_) AS ct  
FROM "filebeat-_"  
WHERE log.file.path='/log\_otrs/apache2/access.log'  
GROUP BY url  
ORDER BY ct DESC LIMIT 5

For the **Split slices** I have the following ES SQL:

SELECT http.response.status\_code as status\_code, count(_) as ct  
FROM "filebeat-_"  
WHERE log.file.path='/log\_otrs/apache2/access.log' and status\_code is not null  
GROUP BY status\_code  
ORDER BY ct DESC LIMIT 5

How can I implement this? Thank you.

---

<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:** [February 17, 2022, 2:38pm UTC](https://discuss.elastic.co/t/top-urls-by-response-code-filebeat-apache-ecs/294961/2 "2022-02-17T14:38:21Z")

</div>

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