Elastic Dump

Dump Remote Elasticsearch Index data and Import into Remote Stack

NODE_TLS_REJECT_UNAUTHORIZED=0 elasticdump --input=https://elastic:[email protected]:9200/winlogbeat --output=/home/kali/Desktop/es_dump.json --noRefresh --limit 500 --searchBody '{"query":{"range":{"@timestamp":{"gte":"2023-09-14T18:40:00"}}}}' --type=data
โ”Œโ”€โ”€(rootใ‰ฟkali)-[~kali/Desktop]
โ””โ”€# NODE_TLS_REJECT_UNAUTHORIZED=0 elasticdump --input=https://elastic:[email protected]:9200/winlogbeat --output=/home/kali/Desktop/es_dump.json --noRefresh --limit 500 --searchBody '{"query":{"range":{"@timestamp":{"gte":"2023-09-14T18:40:00"}}}}' --type=data
Sun, 01 Oct 2023 00:29:39 GMT | starting dump
(node:202606) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
(Use `node --trace-warnings ...` to show where the warning was created)
(node:202606) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
Sun, 01 Oct 2023 00:29:43 GMT | got 500 objects from source elasticsearch (offset: 0)
Sun, 01 Oct 2023 00:29:43 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:29:48 GMT | got 500 objects from source elasticsearch (offset: 500)
Sun, 01 Oct 2023 00:29:48 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:29:53 GMT | got 500 objects from source elasticsearch (offset: 1000)
Sun, 01 Oct 2023 00:29:53 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:29:59 GMT | got 500 objects from source elasticsearch (offset: 1500)
Sun, 01 Oct 2023 00:29:59 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:04 GMT | got 500 objects from source elasticsearch (offset: 2000)
Sun, 01 Oct 2023 00:30:04 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:10 GMT | got 500 objects from source elasticsearch (offset: 2500)
Sun, 01 Oct 2023 00:30:10 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:15 GMT | got 500 objects from source elasticsearch (offset: 3000)
Sun, 01 Oct 2023 00:30:15 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:21 GMT | got 500 objects from source elasticsearch (offset: 3500)
Sun, 01 Oct 2023 00:30:21 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:26 GMT | got 500 objects from source elasticsearch (offset: 4000)
Sun, 01 Oct 2023 00:30:26 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:32 GMT | got 500 objects from source elasticsearch (offset: 4500)
Sun, 01 Oct 2023 00:30:32 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:38 GMT | got 500 objects from source elasticsearch (offset: 5000)
Sun, 01 Oct 2023 00:30:38 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:44 GMT | got 500 objects from source elasticsearch (offset: 5500)
Sun, 01 Oct 2023 00:30:44 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:50 GMT | got 500 objects from source elasticsearch (offset: 6000)
Sun, 01 Oct 2023 00:30:50 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:30:56 GMT | got 500 objects from source elasticsearch (offset: 6500)
Sun, 01 Oct 2023 00:30:56 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:31:01 GMT | got 500 objects from source elasticsearch (offset: 7000)
Sun, 01 Oct 2023 00:31:01 GMT | sent 500 objects to destination file, wrote 500
Sun, 01 Oct 2023 00:31:04 GMT | got 135 objects from source elasticsearch (offset: 7500)
Sun, 01 Oct 2023 00:31:04 GMT | sent 135 objects to destination file, wrote 135
Sun, 01 Oct 2023 00:31:04 GMT | got 0 objects from source elasticsearch (offset: 7635)
Sun, 01 Oct 2023 00:31:04 GMT | Total Writes: 7635
Sun, 01 Oct 2023 00:31:04 GMT | dump complete

Last updated

Was this helpful?