Is there any way to view Confluence Logs using third party like REST APIs

SWAPNIL SRIVASTAV January 1, 2020

I want to view Confluence Logs using third party like REST APIs. Please suggest any REST API for same.

1 answer

0 votes
brbojorque
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 1, 2020

Hi @SWAPNIL SRIVASTAV ,

You can use this LastLog plugin, this is a free add-on.

https://marketplace.atlassian.com/apps/1216685/last-log-for-confluence?hosting=server&tab=overview

After that you can then access the endpoint below, it will either output an HTML or Plain text.

You need to include the Basic Auth in order for you to access the log.

Plain Text 

GET https://BASE_URL_WIKI/rest/lastlog/1.0/log/atlassian-confluence.log?maxEntries=500&query=

HTML

GET https://BASE_URL_WIKI/rest/lastlog/1.0/log/html/atlassian-confluence.log?maxEntries=500&query=

SWAPNIL SRIVASTAV January 2, 2020

Hello @brbojorque ,

Using the plugin, can only admins view logs or normal user can also view?

Also, is there any REST API that you can help me with, if we think of other ways apart from this plugin.

Much Thanks,

Swapnil

SWAPNIL SRIVASTAV January 2, 2020

Hello @brbojorque ,

I cannot find "Last Log for Confluence" in Atlassian marketplace. Could you help me install it

brbojorque
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 2, 2020

Hi @SWAPNIL SRIVASTAV ,

What version of Confluence do you have right now?

Is this an internal instance? Can it access the internet to download the app?

Please provide screenshots aswell.

SWAPNIL SRIVASTAV January 2, 2020

Hi @brbojorque ,

I am using Confluence 6.6.8. It is VDI and I cannot access internet over there.

Confluence.JPG

brbojorque
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 2, 2020

Hi @SWAPNIL SRIVASTAV

Download the latest version using this link in your computer and manually upload it in your Confluence instance.

https://marketplace.atlassian.com/apps/1216685/last-log-for-confluence/version-history

There should be an Upload app in the UPM click it and point the file you have downloaded.

SWAPNIL SRIVASTAV January 5, 2020

Hello @brbojorque ,

Thank you for your continuous response.

I have tried the plugin but it only works for jira-admins. I need to let the end user view logs.

Best Regards,

Swapnil

brbojorque
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2020

@SWAPNIL SRIVASTAV ,

Why? logs will have sensitive information written into it. It is best the only admins have access to it.

You are opening your instance to vulnerability attacks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events