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

Log context view error "timeFieldValue.split(...)[1] is undefined" when using date_nanos #41348

Closed
marius-dr opened this issue Jul 17, 2019 · 0 comments · Fixed by #41353
Closed
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application

Comments

@marius-dr
Copy link
Member

Kibana version: 7.3.0 BC4

Browser version: Firefox

Describe the bug: If you use a date_nanos field as a timefield for your index, the log context view shows the following error and it doesn't even work:

TypeError: "timeFieldValue.split(...)[1] is undefined"
    extractNanos http://localhost:5601/bundles/kibana.bundle.js:3
    _callee$ http://localhost:5601/bundles/kibana.bundle.js:3
    tryCatch http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:541
    invoke http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:541
    method http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:541
    asyncGeneratorStep http://localhost:5601/bundles/kibana.bundle.js:3
    _next http://localhost:5601/bundles/kibana.bundle.js:3
    run http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:364
    notify http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:364
    flush http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:364
 Possibly unhandled rejection: {}

Steps to reproduce:
1.Create an index with date_nanos as a field:

PUT my_index?include_type_name=true
{
  "mappings": {
    "_doc": {
      "properties": {
        "date": {
          "type": "date_nanos"
        }
      }
    }
  }
}
PUT my_index/_doc/1
{ "date": "2014-01-01" }
PUT my_index/_doc/2
{ "date": "2014-01-02" }
PUT my_index/_doc/3
{ "date": "2014-01-03" }
  1. Create an index pattern using the date field as a time field.
  2. Open one of the documents in Discover and select: "View Surrounding Documents"
@marius-dr marius-dr added bug Fixes for quality problems that affect the customer experience Feature:Discover Discover Application labels Jul 17, 2019
@kertal kertal self-assigned this Jul 17, 2019
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 Feature:Discover Discover Application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants