Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events