Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving a dashboard with a now-based date causes a fatal error #4956

Closed
GrahamHannington opened this issue Sep 16, 2015 · 2 comments
Closed
Labels
bug Fixes for quality problems that affect the customer experience PR sent

Comments

@GrahamHannington
Copy link

Attempting to save a dashboard with a "now"-based date (for example, from:now-1w%2Fw) causes a fatal error:

Dashboard:
  Request to Elasticsearch failed:
  "MapperParsingException[failed to parse [timeTo]];
    nested: MapperParsingException[failed to parse date field [now],
      tried both date format [dateOptionalTime], and timestamp number with locale []];
    nested: IllegalArgumentException[Invalid format: \"now\"]; "

I'm using Kibana 4.1.0.

@rashidkpc rashidkpc added the bug Fixes for quality problems that affect the customer experience label Sep 16, 2015
@rashidkpc
Copy link
Contributor

So this appears to happen when an absolute dashboard is stored first, then a now-based (eg relative) one is later stored. Elasticsearch detects the field as a date instead of the string on the first dashboard, and locks the field to type 'date' forever more. As elasticsearch does not support relative dates in its date field, an exception is thrown.

We can create a fix for this, but it will require a re-index of your .kibana index .

@rashidkpc
Copy link
Contributor

Ok, this was actually fixed in master here: #4509. Also fixed in 4.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience PR sent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants