Vega-lite - time axis is not connected correctly to the time changing button on Kibana

I don't know if this is a bug with Kibana or if my code caused this or if I am misinterpreting something. My issue is that whenever I try to manipulate my time axis to stretch beyond an hour using the buttons on Kibana, the total time displayed will be wrong. Also, something that stuck out was that the upper bound of the displayed time domain would change, even though I leave that button on Kibana set as "now" which doesn't make sense to me. I have checked my data in discover to make sure and it goes past 1 hour of data -- to about 3 hours.

{
$schema: "https://vega.github.io/schema/vega-lite/v2.json"

mark: point
data: {

url: {

  %context%: true

  %timefield%: log.@timestamp
  index: log_datalake

  body: {
    size: 10000,

    _source: ["log.@timestamp", "log.nbreLigne", "log.type"]
  }
}

format: { property: "hits.hits" }
}

transform: [

{
  calculate: "toDate(datum._source['log.@timestamp'])",

  as: "time"
}
]

encoding: {

x: {

  field: time
  type: temporal
  axis: { title: "Job" }
}

y: {

  field: _source.log.nbreLigne

  type: quantitative

  axis: { title: "Nb line" }
}

color: {

  field: _source.log.type

  type: nominal

  legend: { title: ' Step' }
}

shape: {

  field: _source.log.type
  type: nominal
}
}
}
Summary

{"$schema":"https://vega.github.io/schema/vega-lite/v2.json","mark":"point","data":{"format":{"property":"hits.hits"},"values":{"took":7,"timed_out":false,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0},"hits":{"total":{"value":185,"relation":"eq"},"max_score":1,"hits":[{"_index":"log_datalake","_type":"_doc","_id":"c7101f7c-a607-406e-a81f-7ff76b600958","_score":1"_score":1,"_source":{"log":{"type":"error_log"},"log.@timestamp":"2020-02-27T17:20:53.436+01:00"}},"log.@timestamp":"2020-02-27T17:20:47.263+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"b9f7ef4f-11f6-4210-94fb-a06c092afee5","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:20:47.262+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"63e5aef2-a1e2-41b3-bf98-80b0221d0909","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:20:47.463+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"f0c067a2-8372-46b2-9e4c-78de51333c31","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:20:47.262+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"6e7bf870-1e18-4671-83c4-ec9811f8ccc0","_score":1,"_source":{"log":{"type":"writing_log"},"log.@timestamp":"2020-02-27T17:26:05.892+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"cbc7bc3a-a88d-4580-8e03-c5cf148409c4","_score":1,"_source":{"log":{"type":"moving_log"},"log.@timestamp":"2020-02-27T17:26:05.914+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"1d592422-9fe4-4a01-b82e-05331c78b03b","_score":1,"_source":{"log":{"nbreLigne":"456","type":"ingestion_log"},"log.@timestamp":"2020-02-28T12:13:49.474+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"2b2b2790-1024-44bc-9742-a793e0198ae4","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T12:13:49.333+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"c94837d4-d6d2-4d4c-a707-b977a2c4f0f1","_score":1,"_source":{"log":{"nbreLigne":"123","type":"ingestion_log"},"log.@timestamp":"2020-02-28T12:13:49.474+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"019eb54b-ea2f-494d-9e89-1981d494583d","_score":1,"_source":{"log":{"nbreLigne":"456","type":"ingestion_log"},"log.@timestamp":"2020-02-28T12:13:49.475+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"3e4560bd-881b-4d7b-9b89-f8c3f3a98aaf","_score":1,"_source":{"log":{"nbreLigne":"123","type":"ingestion_log"},"log.@timestamp":"2020-02-28T12:13:49.475+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"9eeb62ef-9312-4de2-9744-120c21b27c92","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:26:05.893+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"b2bbfcf9-9b0d-4343-b674-f1eca2db8ffb","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T16:57:59.034+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"1c66a94a-645a-4f02-875a-e54c859a725a","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T16:58:10.030+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"c0e9a835-97b3-4cea-956f-80dff83195c0","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T16:57:59.034+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"20765678-b55a-40a7-b201-ad53d45f2ac6","_score":1,"_source":{"log":410262fdb55a","_score":1,"_source":{"log":{"type":"reader_log"},"log.@timestamp":"2020-02-27T17:24:01.496+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"95711beb-3b14-451d-8793-70a3d7114e00","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:30.060+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"ec0628f0-adb8-4f97-87cf-aecc8a9034c2","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:29.821+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"aae9d7ea-6424-4445-b8fc-48e855573bbd","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:30.061+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"695cec2f-bedb-4f3f-aecd-115f559a8b5d","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:29.821+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"ee42cd4c-f595-494e-981b-6f90e87b2c76","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:29.821+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"57c69013-8b85-42d5-8500-a4bd418ba252","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:30.061+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"ed04b759-d532-418e-9daa-ad0c502152b2","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:30.061+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"a415fadc-bf13-4ae2-9da3-e42222bc7c7c","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:29.821+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"b3c537f7-fa2b-4ec0-82cf-dd33493e2b7e","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:30.061+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"2053daad-52cd-4b7b-b0d0-0fa807fadff2","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:29.821+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"0aac7232-2432-4530-87f9-b99680f548eb","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:30.061+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"e4e0950b-56b0-4961-92e8-4a149bc5c157","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:29.821+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"c5a462b8-758a-4a90-998b-bcf830d83f65","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:22:29.821+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"a64142c8-27dc-4871-beab-bcc5ca0990f5","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-27T17:24:01.860+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"22469957-727f-4f81-8c44-7644f04bfd0c","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:46:56.479+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"e6acf88a-0474-4e34-9b46-551e1b03db33","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:46:56.203+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"b26d0a93-557f-42b2-87d2-7e43a23ad7d6","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:46:56.479+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"6a8adf90-03b3-4794-8b73-a2f0aaa34093","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:47:03.986+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"181b2d27-24f8-495c-8cf9-7aa095727f0a","_score":1,"_source":{"log":{"type":"writing_log"},"log.@timestamp":"2020-02-28T14:47:05.768+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"933dee8c-650e-41bc-9676-6d73ef198560","_score":1,"_source":{"log":{"type":"reader_log"},"log.@timestamp":"2020-02-28T14:47:03.939+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"ba8956bc-38d1-447d-89dd-6a1f78a52aa3","_score":1,"_source":{"log":{"type":"partitioning_log"},"log.@timestamp":"2020-02-28T14:47:05.317+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"5c4dcad9-b473-4cfa-b03b-a1e0237841a2","_score":1,"_source":{"log":{"type":"moving_log"},"log.@timestamp":"2020-02-28T14:47:05.781+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"5963bbd7-20a8-4e75-8be8-baa5bff54619","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:47:05.769+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"524574a6-df08-46ff-8985-86b61afd34a7","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:47:37.606+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"26e81133-b4dd-4d46-b9d4-88d661c7a6be","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:47:37.606+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"81981dee-7760-442a-a2bb-6f8934d56a3f","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:47:37.606+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"b9fd19a0-daec-4a1c-b66e-27dd5ad998ad","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:47:37.606+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"eafec0aa-4da7-4cb0-a20f-d3b6c67edc7f","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:47:37.607+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"9469de90-6161-4b4e-adac-6bd5a558effb","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:51:08.667+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"da22717b-993d-4e03-ab7c-121e572bcf76","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:51:08.667+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"7b40d4de-ca86-4e33-8557-632990ed6027","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:51:08.667+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"306ac5b8-79f5-4504-9077-180bf48a470f","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:51:08.667+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"7e3fdc5f-c08e-40d5-8f4b-2af50b87335e","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:51:08.667+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"7642fadc-ed7c-4658-ab7b-cbfcd708683a","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:16:25.887+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"477b01be-531c-4e1d-8f58-0af52da4f465","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:17:00.392+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"6095ec84-847f-4d3a-ae76-fc2ab138f7e2","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:17:00.392+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"5a49fa72-e532-44a5-a9be-b4d36328d614","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:17:00.392+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"7a43246f-af49-4fc1-8a35-7ace959d0a77","_score":1,"_source":{"log":{"type":"RawText"},"log.@timestamp":"2020-02-28T14:16:25.887+01:00"}},{"_index":"log_datalake","_type":"_doc","_id":"91f5f5b0-52c1-406a-88e0-fdc0d68cf879","_score":1,"_source":{"log":{"type":"error_log"},{"_index":"log_datalake","_type":"_doc","_id":"79de6be9-1f58-43f3-83df-2d67b4f3d800","_score":1,"_source":{"log":{"type":"error_log"},"log.@timestamp":"2020-02-28T14:12:46.952+01:00"}}

When I use : JSON.stringify(VEGA_DEBUG.vegalite_spec) there are errors on my field log.type

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