Issue in elasticdump


(Kabali12345) #1

Hi all....

I am trying to Import and Export Visualizations and Dashboards with Elasticdump in kibana-6

elasticdump \
	--input=http://localhost:9200/.kibana  \
    --headers='{"Content-Type": "application/json"}' \
    --output=/home/sgpl-user/import.json \
    --type=data \
    --searchBody='{"filter": {"or": [ {"type": {"value": "dashboard"}}, {"type" : {"value":"visualization"}}] }}'

it is throwing below error

Fri, 19 Jan 2018 10:00:38 GMT | starting dump
Fri, 19 Jan 2018 10:00:38 GMT | Error Emitted => {"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [filter].","line":1,"col":11}],"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [filter].","line":1,"col":11},"status":400}
Fri, 19 Jan 2018 10:00:38 GMT | Total Writes: 0
Fri, 19 Jan 2018 10:00:38 GMT | dump ended with error (get phase) => Error: {"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [filter].","line":1,"col":11}],"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [filter].","line":1,"col":11},"status":400}
You have new mail in /var/spool/mail/ec2-user

please can anyone help me out
can we use elasticdump in kibana-6 i mean elastic stack 6.0.0v if yes can we use filter in searchbody?
and how can i resolve the above issue?

Thanks in Advance.


(system) #2

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