HOWTO check the presence of logs in ceph archive
Why do that¶
Sometimes, or after a disaster on the indexing base (elasticsearch), you have to check the presence of logs in the ceph archive.
Prerequisites¶
You need :
- a datastorage cluster available (Ceph Storage)
- a account on the operator device
What to do¶
List the topics available on the Ceph cluster¶
1 2 3 4 5 6 | $ punchplatform-objects-storage.sh list-topics --cluster ceph:main --pool <tenant>-data # result # apache_parsed # apache_error # checkpoint_parsed # checkpoint_error |
Check the size of a specific topic on one day¶
- Chose a specific topic, for instance: apache_parsed
- Chose a date, for instance: 2017-07-09
1 | $ punchplatform-objects-storage.sh extract-scope --cluster ceph:main --pool <tenant>-data --from-date '2017-07-09T00:00:00+01:00' --to-date '2017-07-09T23:59:59+01:00' --summary-only --topic apache_parsed |