Is there a way to determine if a HipChat user connected via a native app or via the web launch app?

Hello,

I am trying to determine if there is a way or a log file that can tell me whether specific users connected to our HipChat server (on premise) via either a native Windows or Mac HipChat Application, or via the Web based app.    Would appreciate if someone could advise on which log file (if any) will help me track this down, and how to extract the information.

I need this for access control reporting. 

 

Thank you in adavance

 

AD 

1 answer

0 vote
Ahmad Danial Atlassian Team Nov 23, 2017

Hi, Arif.

Depending on what connection you are referring to, you have the following scenarios where you can keep track of the connection history from the /var/log/hipchat/web.log:

Web interface home login remote_addr: I am connecting uid-1 through my IP address 104.192.139.233 to the https://hipchat.example.com/home page

2017-11-23T01:54:09.278314+00:00 hipchat web[4255]: users/login_password#REQD29F17 uid-1 1ms [info] === REQUEST START === url: https://hipchat.example.com/login_password, method: POST, referrer: https://hipchat.example.com/login_password, server: , remote_addr: 104.192.139.233, user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36, x_hipchat_request: public
2017-11-23T01:54:09.278328+00:00 hipchat web[4255]: users/login_password#REQD29F17 uid-1 4ms [info] Storing referrer for visitor: https://hipchat.example.com/login_password
2017-11-23T01:54:09.278333+00:00 hipchat web[4255]: users/login_password#REQD29F17 uid-1 131ms [info] Started session for uid-1 - {"id":1,"name":"Ahmad Danial Mohammad","email":"adanial@atlassian.com"} - remember me: y
2017-11-23T01:54:09.279989+00:00 hipchat web[4255]: users/login_password#REQD29F17 uid-1 132ms [info] Redirecting to https://hipchat.example.com/home with 302
2017-11-23T01:54:09.596840+00:00 hipchat web[4254]: home/index#REQD2AC1B uid-1 1ms [info] === REQUEST START === url: https://hipchat.example.com/home, method: GET, referrer: https://hipchat.example.com/login_password, server: , remote_addr: 104.192.139.233, user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36, x_hipchat_request: public
2017-11-23T01:54:09.596853+00:00 hipchat web[4254]: home/index#REQD2AC1B uid-1 5ms [info] Authed uid-1


Web interface chat client remote_addr: I am connecting uid-1 through my IP address 104.192.139.233 to the https://hipchat.example.com/chat page

2017-11-23T01:56:50.575826+00:00 hipchat web[5340]: chat/index#REQAAC26D uid-1 1ms [info] === REQUEST START === url: https://hipchat.lightning.hcsinf.com/chat, method: GET, referrer: https://hipchat.lightning.hcsinf.com/home, server: , remote_addr: 104.192.139.233, user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36, x_hipchat_request: public2017-11-23T01:56:50.575841+00:00 hipchat web[5340]: chat/index#REQAAC26D uid-1 6ms [info] Authed uid-1
2017-11-23T01:56:56.771289+00:00 hipchat web[4255]: api_internal/features#REQ493C7E uid-anon 1ms [info] === REQUEST START === url: https://hipchat.lightning.hcsinf.com/api/features, method: POST, referrer: https://hipchat.lightning.hcsinf.com/chat, server: , remote_addr: 104.192.139.233, user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36, x_hipchat_request: public

Desktop client log in: I am connecting uid-1 through my IP address 104.192.139.233 through the Mac client:

2017-11-23T01:59:05.538167+00:00 hipchat web[4255]: users/login_password#REQ926B14 uid-1 1ms [info] === REQUEST START === url: https://hipchat.lightning.hcsinf.com/login_password, method: POST, referrer: https://hipchat.lightning.hcsinf.com/login_password?d=%2Fusers%2Fauthorize%3Fresponse_type%3Dcode%26client_name%3Dcom.atlassian.hipchat.osx-clients%26scope%3Dadmin_room%2520manage_rooms%2520send_message%2520send_notification%2520view_group%2520view_messages%2520view_room%26redirect_uri%3Dhipchat%3A%2F%2Fhipchat.com%2Fauthorized%26state%3D52157434, server: , remote_addr: 104.192.139.233, user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) HipChat/742 (modern), x_hipchat_request: public2017-11-23T01:59:05.538182+00:00 hipchat web[4255]: users/login_password#REQ926B14 uid-1 129ms [info] Started session for uid-1 - {"id":1,"name":"Ahmad Danial Mohammad","email":"adanial@atlassian.com"} - remember me: n
2017-11-23T01:59:05.539830+00:00 hipchat web[4255]: users/login_password#REQ926B14 uid-1 130ms [info] Redirecting to https://hipchat.lightning.hcsinf.com/users/authorize?response_type=code&client_name=com.atlassian.hipchat.osx-clients&scope=admin_room%20manage_rooms%20send_message%20send_notification%20view_group%20view_messages%20view_room&redirect_uri=hipchat://hipchat.com/authorized&state=52157434 with 3022017-11-23T01:59:05.820214+00:00 hipchat web[4254]: users/authorize#REQ1F4010 uid-1 1ms [info] === REQUEST START === url: https://hipchat.lightning.hcsinf.com/users/authorize?response_type=code&client_name=com.atlassian.hipchat.osx-clients&scope=admin_room%20manage_rooms%20send_message%20send_notification%20view_group%20view_messages%20view_room&redirect_uri=hipchat://hipchat.com/authorized&state=52157434, method: GET, referrer: https://hipchat.lightning.hcsinf.com/login_password?d=%2Fusers%2Fauthorize%3Fresponse_type%3Dcode%26client_name%3Dcom.atlassian.hipchat.osx-clients%26scope%3Dadmin_room%2520manage_rooms%2520send_message%2520send_notification%2520view_group%2520view_messages%2520view_room%26redirect_uri%3Dhipchat%3A%2F%2Fhipchat.com%2Fauthorized%26state%3D52157434, server: , remote_addr: 104.192.139.233, user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) HipChat/742 (modern), x_hipchat_request: public2017-11-23T01:59:05.820227+00:00 hipchat web[4254]: users/authorize#REQ1F4010 uid-1 5ms [info] Authed uid-1
2017-11-23T01:59:05.820232+00:00 hipchat web[4254]: users/authorize#REQ1F4010 uid-1 27ms [info] scope admin_room manage_rooms send_message send_notification view_group view_messages view_room list:Array size 7
2017-11-23T01:59:06.109777+00:00 hipchat web[4256]: users/authorize#REQ33A7DD uid-1 1ms [info] === REQUEST START === url: https://hipchat.lightning.hcsinf.com/users/authorize, method: POST, referrer: https://hipchat.lightning.hcsinf.com/users/authorize?response_type=code&client_name=com.atlassian.hipchat.osx-clients&scope=admin_room%20manage_rooms%20send_message%20send_notification%20view_group%20view_messages%20view_room&redirect_uri=hipchat://hipchat.com/authorized&state=52157434, server: , remote_addr: 104.192.139.233, user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) HipChat/742 (modern), x_hipchat_request: public2017-11-23T01:59:06.109792+00:00 hipchat web[4256]: users/authorize#REQ33A7DD uid-1 5ms [info] Authed uid-1
2017-11-23T01:59:06.109797+00:00 hipchat web[4256]: users/authorize#REQ33A7DD uid-1 19ms [info] Redirecting to hipchat://hipchat.com/authorized?code=gyreIfymfC2yQaIhMwG0ZtAzSbx4DTldLttolNGinbxsEZusl0&state=52157434&group_id=1&user_id=1&user_name=Ahmad+Danial+Mohammad&mention=HipChatAdministrator&jid=1_1%40chat.btf.hipchat.com&route=xmpp%3Ahipchat.lightning.hcsinf.com%3A5222&chat_server=chat.btf.hipchat.com&api_host=hipchat.lightning.hcsinf.com&bind_url=https%3A%2F%2Fhipchat.lightning.hcsinf.com%2Fhttp-bind%2F&conference_server=conf.btf.hipchat.com&web_server=hipchat.lightning.hcsinf.com&video_chat_enabled=1&video_base_url=https%3A%2F%2Fhipchat.me with 302

iOS client log in: I am connecting uid-1 through my IP address 104.192.139.233 through the iOS client:

2017-11-23T01:58:26.199924+00:00 hipchat web[5340]: users/login_password#REQ93B64E uid-1 1ms [info] === REQUEST START === url: https://hipchat.example.com/login_password, method: POST, referrer: https://hipchat.example.com/login_password?d=%2Fusers%2Fauthorize%3Fsignup%3D0%26response_type%3Dcode%26scope%3Dview_group%2520send_notification%2520send_message%2520admin_group%2520admin_room%2520manage_rooms%2520view_messages%2520view_room%26email%3D%26redirect_uri%3Dhipchat%253A%252F%252Fhipchat.com%252Fauthorized%26client_name%3Dcom.atlassian.hipchat.ios-clients%26state%3DEA9C86DA-6AB9-45E8-9431-5F05DE990AB0, server: , remote_addr: 104.192.139.233, user_agent: HipChat, x_hipchat_request: public2017-11-23T01:58:26.199938+00:00 hipchat web[5340]: users/login_password#REQ93B64E uid-1 131ms [info] Started session for uid-1 - {"id":1,"name":"Ahmad Danial Mohammad","email":"adanial@atlassian.com"} - remember me: n
2017-11-23T01:58:26.201593+00:00 hipchat web[5340]: users/login_password#REQ93B64E uid-1 132ms [info] Redirecting to https://hipchat.example.com/users/authorize?signup=0&response_type=code&scope=view_group%20send_notification%20send_message%20admin_group%20admin_room%20manage_rooms%20view_messages%20view_room&email=&redirect_uri=hipchat%3A%2F%2Fhipchat.com%2Fauthorized&client_name=com.atlassian.hipchat.ios-clients&state=EA9C86DA-6AB9-45E8-9431-5F05DE990AB0 with 3022017-11-23T01:58:26.532066+00:00 hipchat web[4255]: users/authorize#REQ1B9EA6 uid-1 1ms [info] === REQUEST START === url: https://hipchat.example.com/users/authorize?signup=0&response_type=code&scope=view_group%20send_notification%20send_message%20admin_group%20admin_room%20manage_rooms%20view_messages%20view_room&email=&redirect_uri=hipchat%3A%2F%2Fhipchat.com%2Fauthorized&client_name=com.atlassian.hipchat.ios-clients&state=EA9C86DA-6AB9-45E8-9431-5F05DE990AB0, method: GET, referrer: https://hipchat.example.com/login_password?d=%2Fusers%2Fauthorize%3Fsignup%3D0%26response_type%3Dcode%26scope%3Dview_group%2520send_notification%2520send_message%2520admin_group%2520admin_room%2520manage_rooms%2520view_messages%2520view_room%26email%3D%26redirect_uri%3Dhipchat%253A%252F%252Fhipchat.com%252Fauthorized%26client_name%3Dcom.atlassian.hipchat.ios-clients%26state%3DEA9C86DA-6AB9-45E8-9431-5F05DE990AB0, server: , remote_addr: 104.192.139.233, user_agent: HipChat, x_hipchat_request: public2017-11-23T01:58:26.532080+00:00 hipchat web[4255]: users/authorize#REQ1B9EA6 uid-1 5ms [info] Authed uid-1
2017-11-23T01:58:26.532085+00:00 hipchat web[4255]: users/authorize#REQ1B9EA6 uid-1 33ms [info] scope view_group send_notification send_message admin_group admin_room manage_rooms view_messages view_room list:Array size 8
2017-11-23T01:58:26.872743+00:00 hipchat web[4254]: users/authorize#REQ2F7093 uid-1 1ms [info] === REQUEST START === url: https://hipchat.example.com/users/authorize, method: POST, referrer: https://hipchat.example.com/users/authorize?signup=0&response_type=code&scope=view_group%20send_notification%20send_message%20admin_group%20admin_room%20manage_rooms%20view_messages%20view_room&email=&redirect_uri=hipchat%3A%2F%2Fhipchat.com%2Fauthorized&client_name=com.atlassian.hipchat.ios-clients&state=EA9C86DA-6AB9-45E8-9431-5F05DE990AB0, server: , remote_addr: 104.192.139.233, user_agent: HipChat, x_hipchat_request: public2017-11-23T01:58:26.872757+00:00 hipchat web[4254]: users/authorize#REQ2F7093 uid-1 5ms [info] Authed uid-1
2017-11-23T01:58:26.872763+00:00 hipchat web[4254]: users/authorize#REQ2F7093 uid-1 19ms [info] Redirecting to hipchat://hipchat.com/authorized?code=ecaqKUuiPiKMDRtCwfsBvUUe8CxpJIlvOo7KMt5wac5j67nTpF&state=EA9C86DA-6AB9-45E8-9431-5F05DE990AB0&group_id=1&user_id=1&user_name=Ahmad+Danial+Mohammad&mention=HipChatAdministrator&jid=1_1%40chat.btf.hipchat.com&route=xmpp%3Ahipchat.example.com%3A5222&chat_server=chat.btf.hipchat.com&api_host=hipchat.example.com&bind_url=https%3A%2F%2Fhipchat.example.com%2Fhttp-bind%2F&conference_server=conf.btf.hipchat.com&web_server=hipchat.example.com&video_chat_enabled=1&video_base_url=https%3A%2F%2Fhipchat.me with 302

This will be the source of truth that you can use to extract the information needed to check specific users logging in from different IP addresses and different situation (web interface, web client or desktop client)

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...

458 views 2 6
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