# URL templating - Is it possible to split the output of event.values?

**URL:** https://discuss.elastic.co/t/url-templating-is-it-possible-to-split-the-output-of-event-values/351659
**Category:** Kibana
**Created:** [January 23, 2024, 6:56pm UTC](https://discuss.elastic.co/t/url-templating-is-it-possible-to-split-the-output-of-event-values/351659 "2024-01-23T18:56:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)
#### Post date: [January 23, 2024, 6:56pm UTC](https://discuss.elastic.co/t/url-templating-is-it-possible-to-split-the-output-of-event-values/351659/1 "2024-01-23T18:56:17Z")

</div>

Hi there!

I'm working on a "Table row click" drill down for one of my Lens tables, my goal is to have a drill down off a hidden field (report Id) to make it easier for the users.

the event.values variable return an array similar to the one below

> report-12345,some\_report\_title,some\_report\_category,some\_report\_score

I tried doing something like

> [https://mysite.com/#/reports/](https://mysite.com/#/reports/) **{{{split event.values "," 0}}**

with the idea of extracting the just the first element "report-12345" but that didn't work. What I get in return is just the array with all the elements

> [https://mysite.com/#/reports/report-12345,some\_report\_title,some\_report\_category,some\_report\_score](https://mysite.com/#/reports/report-12345,some_report_title,some_report_category,some_report_score)

Any ideas on how to use split to extract a given element?

TIA!

Azulgrana

---

<div class="post-metadata">

### Author: ![azulgrana](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@azulgrana](https://discuss.elastic.co/u/azulgrana)
#### Post date: [January 30, 2024, 5:29am UTC](https://discuss.elastic.co/t/url-templating-is-it-possible-to-split-the-output-of-event-values/351659/2 "2024-01-30T05:29:49Z")

</div>

this did the trick for me

> {{lookup (split event.values ",") 0}}

---

<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 27, 2024, 5:30am UTC](https://discuss.elastic.co/t/url-templating-is-it-possible-to-split-the-output-of-event-values/351659/3 "2024-02-27T05:30:41Z")

</div>

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