HipChat Server: How to Extract 1-1 Conversation of a Specific User
Purpose
Obtain the 1-1 conversation of a specific user directly from the instance without performing a data export.
Solution
For private conversations between users, you can query messages from a specific user id like so via the comand line in the HipChat Server. Replace the <user_id> parameter with the user id of your choice:
curl 'http://localhost:9200/private-*/document/_search?q=from.user_id:<user_id>&pretty'
Or private messages to a specific user id using this command instead:
curl 'http://localhost:9200/private-*/document/_search?q=to.user_id:<user_id>&pretty'
The output will be in json format
Last modified on Jun 18, 2018
Powered by Confluence and Scroll Viewport.