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

IllegalArgumentException-Invalid format: \"now\" #5415

Closed
Rajeshkumar123 opened this issue Nov 17, 2015 · 4 comments
Closed

IllegalArgumentException-Invalid format: \"now\" #5415

Rajeshkumar123 opened this issue Nov 17, 2015 · 4 comments

Comments

@Rajeshkumar123
Copy link

I have exported Kibana dashboards and visualization from one server and I have imported that dashboards and visualizations to another server successfully. When I try to save the dashboard with "store time with dashboard". I am getting below error. I am not sure where it is going wrong.

Dashboard: Request to Elasticsearch failed: "RemoteTransportException[[xxx.xxx.xxx][inet[/xxx.xxx.xxx]][indices:data/write/index]]; nested: 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"];

@rashidkpc
Copy link
Contributor

What version is this? Pretty sure this was fixed here: #4509

@Rajeshkumar123
Copy link
Author

I am using Kibana 4.1.0.

@spalger
Copy link
Contributor

spalger commented Dec 18, 2015

This was fixed in 4.2.0

@spalger spalger closed this as completed Dec 18, 2015
@bwalsh
Copy link

bwalsh commented Mar 27, 2017

I'm experiencing this error. Using Version: 5.1.1 :

  • This fails
     {
        "_index" : ".kibana",
        "_type" : "dashboard",
        "_id" : "DB's-dashboard",
        "_score" : 1.0,
        "_source" : {
          "title" : "DB's dashboard",
          "hits" : 0,
          "description" : "",
          "panelsJSON" : "[{\"col\":1,\"id\":\"metrics\",\"panelIndex\":1,\"row\":1,\"size_x\":2,\"size_y\":1,\"type\":\"visualization\"},{\"col\":3,\"id\":\"unit\",\"panelIndex\":6,\"row\":1,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"errors\",\"panelIndex\":9,\"row\":4,\"size_x\":10,\"size_y\":3,\"type\":\"visualization\"},{\"col\":9,\"id\":\"error-text\",\"panelIndex\":10,\"row\":1,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"voltage solar\",\"panelIndex\":11,\"row\":10,\"size_x\":10,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"positive-peak-post-pulse\",\"panelIndex\":13,\"row\":7,\"size_x\":10,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"columns\":[\"_source\"],\"id\":\"all\",\"panelIndex\":14,\"row\":15,\"size_x\":12,\"size_y\":3,\"sort\":[\"time\",\"asc\"],\"type\":\"search\"},{\"col\":6,\"id\":\"unit_table\",\"panelIndex\":15,\"row\":1,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Batt-Current_with-max\",\"panelIndex\":16,\"row\":13,\"size_x\":10,\"size_y\":2,\"type\":\"visualization\"},{\"col\":1,\"id\":\"reset-or-boot\",\"panelIndex\":17,\"row\":2,\"size_x\":2,\"size_y\":1,\"type\":\"visualization\"}]",
          "optionsJSON" : "{\"darkTheme\":false}",
          "uiStateJSON" : "{\"P-15\":{\"vis\":{\"params\":{\"sort\":{\"columnIndex\":0,\"direction\":\"asc\"}}}},\"P-9\":{\"vis\":{\"legendOpen\":true}}}",
          "version" : 1,
          "timeRestore" : true,
          "timeTo" : "now",
          "timeFrom" : "now-90d",
          "refreshInterval" : {
            "display" : "Off",
            "pause" : false,
            "value" : 0
          },
          "kibanaSavedObjectMeta" : {
            "searchSourceJSON" : "{\"filter\":[{\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}}}]}"
          }
        }
      },
  • This worked (removed the time restore )
     {
        "_index" : ".kibana",
        "_type" : "dashboard",
        "_id" : "DB's-dashboard",
        "_score" : 1.0,
        "_source" : {
          "title" : "DB's dashboard",
          "hits" : 0,
          "description" : "",
          "panelsJSON" : "[{\"col\":1,\"id\":\"metrics\",\"panelIndex\":1,\"row\":1,\"size_x\":2,\"size_y\":1,\"type\":\"visualization\"},{\"col\":3,\"id\":\"unit\",\"panelIndex\":6,\"row\":1,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"errors\",\"panelIndex\":9,\"row\":4,\"size_x\":10,\"size_y\":3,\"type\":\"visualization\"},{\"col\":9,\"id\":\"error-text\",\"panelIndex\":10,\"row\":1,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"voltage solar\",\"panelIndex\":11,\"row\":10,\"size_x\":10,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"positive-peak-post-pulse\",\"panelIndex\":13,\"row\":7,\"size_x\":10,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"columns\":[\"_source\"],\"id\":\"all\",\"panelIndex\":14,\"row\":15,\"size_x\":12,\"size_y\":3,\"sort\":[\"time\",\"asc\"],\"type\":\"search\"},{\"col\":6,\"id\":\"unit_table\",\"panelIndex\":15,\"row\":1,\"size_x\":3,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Batt-Current_with-max\",\"panelIndex\":16,\"row\":13,\"size_x\":10,\"size_y\":2,\"type\":\"visualization\"},{\"col\":1,\"id\":\"reset-or-boot\",\"panelIndex\":17,\"row\":2,\"size_x\":2,\"size_y\":1,\"type\":\"visualization\"}]",
          "optionsJSON" : "{\"darkTheme\":false}",
          "uiStateJSON" : "{\"P-15\":{\"vis\":{\"params\":{\"sort\":{\"columnIndex\":0,\"direction\":\"asc\"}}}},\"P-9\":{\"vis\":{\"legendOpen\":true}}}",
          "version" : 1,
          "refreshInterval" : {
            "display" : "Off",
            "pause" : false,
            "value" : 0
          },
          "kibanaSavedObjectMeta" : {
            "searchSourceJSON" : "{\"filter\":[{\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}}}]}"
          }
        }
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants