HIPCHAT : Cannot find docs on how to run export by calling the export API Edited

Andrei [errno] Community Champion May 01, 2017

as seen in https://jira.atlassian.com/browse/HCPUB-1989 and https://bitbucket.org/snippets/hipchat/9qLx9/export-a-single-room-in-hipchat-server : we can start an export job via a REST API call.

However I cannot find any docs about this feature. (I am mostly interested in start/end date parameters...)

Use case - need to offload daily chat logs for compliance reasons.

And while the regular export dumps all history into a file - this is not ideal if I just need 1 day worth of data,



1 answer

1 accepted

1 vote
Arbi Dridi Atlassian Team May 03, 2017

Hi Errno, 

What's the issue with the workaround documented in HCPUB-1989?

I have just tested it locally and it works as intended. If you don't wish to run an export and then have to un-encrypt the file to get the data, you can hit Elasticsearch directly. For example: 

curl -s -XPOST http://localhost:9200/_all/document/_search?pretty\&size=10000 -d '{"query":{"bool":{"must":[{"range":{"date.num":{"gte": "2017-05-02T00:00:00Z","lt": "2017-05-04T00:00:00Z"}}}]}}}' | jq '[.[]]' | jq '.[0].hits'

Note that version 2.3.0 that's currently in Beta no longer uses Elasticsearch but will have simpler chat history storage which would make this task much easier. 

I hope this helps. 

thank you - do you have any docs on how will it be implemented in 2.3+? we would probably like to future-proof our scripts... thanks again

Arbi Dridi Atlassian Team May 09, 2017

2.3+ will be PostgreSQL. It's currently available in Beta as a Data Center license. 

We don't have documentation for it just yet. 


Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Mar 26, 2018 in Hipchat Data Center

Migration of Hipchat server to Data Center - a retrospective

Background While our Hipchat server environment was reliable and performing well, as a significant and growing part of our business, the need to leverage the benefits of Hipchat Data Center&nbs...

527 views 2 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you