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

Export data is empty when the --c parameter is not used #4

Closed
kerven88 opened this issue Nov 19, 2021 · 1 comment
Closed

Export data is empty when the --c parameter is not used #4

kerven88 opened this issue Nov 19, 2021 · 1 comment

Comments

@kerven88
Copy link

Export data is empty when the --c parameter is not used,log display: "total_raw_bytes: 0.00 MB"。

My export command:
[root@ip~]# /opt/esdump export \

--es http://127.0.0.1:9200 \
--index forseti-r-20211118 \
--gzip=false \
--o /tmp/tmp.json \
--MatchBody '{"range": {"activity.S_T_VD_EVENTOCCURDATE.raw": {"gte": "2021-11-18", "lt": "2021-11-19"}}}'

2021/11/19 06:10:16 execute export
2021/11/19 06:10:16 export index forseti-r-20211118 to /tmp/tmp.json
2021/11/19 06:10:16 init elasticsearch Client with url: http://127.0.0.1:9200
2021/11/19 06:10:16 export match: {"range": {"activity.S_T_VD_EVENTOCCURDATE.raw": {"gte": "2021-11-18", "lt": "2021-11-19"}}}
2021/11/19 06:10:16 total exported 1 items; total_raw_bytes: 0.00 MB;
2021/11/19 06:10:16 export time spend 107.544834ms

When there is data after adding the --c parameter, and the amount of exported data varies with the size of the parameter, what is the function of the --c parameter?

@wxf4150
Copy link
Owner

wxf4150 commented Nov 23, 2021

-c parameter set the max amount of documents to be exported; default(0) will exported all matched document;

pre-commit,the MaxDocs parameter( -c parameter) ,with default(0) vlaue will export none data. it's a bug
i have fix the bug .

@kerven88

@wxf4150 wxf4150 closed this as completed Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants