The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Source IP Within Groovy

Normann P_ Nielsen _Netic_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 5, 2018

I have a script that posts Confluence PageViews to splunk (and other engines) : http://www.mos-eisley.dk/display/ATLASSIAN/Logging+PageEvents+to+Splunk

But I would also like to get more info, most of all Source IP for the request - it that possible, to get hold of that from the Event?

I tried (long time ago):

//HttpServletRequest request = ServletActionContext.getRequest();
//String ipAddress = request.getRemoteAddr();

 

Did not work. Who do I get hold of this/these properties...

 

BR,

 

Normann

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events