# Timelion: Error: Expected: "$" @ character undefined

**URL:** <https://discuss.elastic.co/t/timelion-error-expected-character-undefined/93762>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [July 19, 2017, 12:49pm UTC](https://discuss.elastic.co/t/timelion-error-expected-character-undefined/93762 "2017-07-19T12:49:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![burkov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burkov/32/20239_2.png) [@burkov](https://discuss.elastic.co/u/burkov)\
**Post date:** [July 19, 2017, 12:49pm UTC](https://discuss.elastic.co/t/timelion-error-expected-character-undefined/93762/1 "2017-07-19T12:49:10Z")

</div>

I have apache logs, loaded into Elasticsearch index, called access\_log, via Filebeat and Logstash. I'm trying to use Timelion to show a chart with 2 metrics:

- all user requests to my website
- requests to the search API only

For that end I'm writing the following Timelion request:

`.es(*), es(index="access_log", metric="sum:request")`

However, this fails with this error message:

Timelion: Error: Expected: "$" @ character undefined More Info OK 166s

[![](https://user-images.githubusercontent.com/7602655/28319527-095dd4d6-6bc6-11e7-8107-3014f24783cd.png) ](https://user-images.githubusercontent.com/7602655/28319527-095dd4d6-6bc6-11e7-8107-3014f24783cd.png)

Just .es(\*) works and draws something:

[![](https://user-images.githubusercontent.com/7602655/28319594-3b3068ca-6bc6-11e7-89ad-8ae0a20345fe.png) ](https://user-images.githubusercontent.com/7602655/28319594-3b3068ca-6bc6-11e7-89ad-8ae0a20345fe.png)

Kibana and Elasticsearch versions: **5.4.3**  
Server OS version: **RedHat 6**  
Browser version: **Chrome 58.0.3029.110**  
Browser OS version: **MacOS Sierra 10.12.5**  
Original install method: downloaded archives, then run \*_java -jar .war with openJDK 1.8_

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [July 19, 2017, 10:31pm UTC](https://discuss.elastic.co/t/timelion-error-expected-character-undefined/93762/2 "2017-07-19T22:31:25Z")

</div>

What info shows up if you click on "More Info"?

Is there any correlating log message that appears in the Elasticsearch or Kibana logs?

---

<div class="post-metadata">

**Author:** ![burkov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burkov/32/20239_2.png) [@burkov](https://discuss.elastic.co/u/burkov)\
**Post date:** [July 20, 2017, 9:14am UTC](https://discuss.elastic.co/t/timelion-error-expected-character-undefined/93762/3 "2017-07-20T09:14:49Z")

</div>

@tsullivan

Hi, thanks for reply! They found the cause of my error on github ([https://github.com/elastic/kibana/issues/12944#event-1170340572](https://github.com/elastic/kibana/issues/12944#event-1170340572)) - I was missing a dot before the second call of `.es()`. Cheers!

---

<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:** [August 17, 2017, 9:15am UTC](https://discuss.elastic.co/t/timelion-error-expected-character-undefined/93762/4 "2017-08-17T09:15:00Z")

</div>

Closed on August 17, 2017, 9:15am UTC

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