It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

1 answer

0 votes

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=

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

Hello @brbojorque ,

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

brbojorque Community Leader Jan 02, 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.

Hi @brbojorque ,

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

Confluence.JPG

brbojorque Community Leader Jan 02, 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.

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 Jan 05, 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
Community showcase
Published in New to Confluence

Fast-track your Confluence onboarding with the Confluence product guides!

Hey there! New in town? Check out the new Confluence product guides! They are chock-full of helpful tips, tricks, and best practices to get you and your team started.  Here’s a quick overview...

793 views 3 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you