Sure, takes a bit of parsing, but you should see something like this in
your logs:

=============================================================
WHO: audit:unknown
WHAT: [result=Service Access Granted,service=
https://myapp.mydomain.com/login.
.,principal=SimplePrincipal(id=user),requiredAttributes={}]
ACTION: SERVICE_ACCESS_ENFORCEMENT_TRIGGERED
APPLICATION: CAS
WHEN: Fri Jul 02 09:00:58 PDT 2021
CLIENT IP ADDRESS: xx.xx.xxx
SERVER IP ADDRESS: xxx.xx.xxx.xxx
=============================================================


On Fri, Jul 2, 2021 at 11:08 AM Vikash Chandra Ansh <
[email protected]> wrote:

> Hi Stewart
>
> Thanks for your reply.But in logs I can find the NLB url . What I am
> expecting is ,from which remote source (like personal machine IP), the user
> is accessing the NLB url.
>
> Thanks and regards
>
> On Fri, Jul 2, 2021, 8:53 PM Stewart <[email protected]> wrote:
>
>> Hi Vikash,
>>
>> I'm sure there is a more elegant solutions than what I'll suggest (I'm
>> just an amateur...).    Why not parse CAS logs for the Service Access
>> Granted stanza, it contains the IP address?  Of course if you have lots of
>> traffic, it might be more efficient to parse the application's server
>> logs....
>>
>> Best Regards,
>>
>> Stewart
>>
>> On Fri, Jul 2, 2021 at 9:21 AM Vikash Chandra Ansh <
>> [email protected]> wrote:
>>
>>> Hi All,
>>>
>>> Hope you are well. I have a small query.
>>> I have integrated a java application with CAS. Now I want the IP
>>> addresses of the users who are accessing my application.
>>> Is it feasible in CAS to track this? I beleive in CAS we can track the
>>> IP or NLB of client application. Please advise
>>>
>>> My cas version is 6.1
>>>
>>> Thanks and regards
>>> Vikash Chandra
>>>
>>> --
>>> - Website: https://apereo.github.io/cas
>>> - Gitter Chatroom: https://gitter.im/apereo/cas
>>> - List Guidelines: https://goo.gl/1VRrw7
>>> - Contributions: https://goo.gl/mh7qDG
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "CAS Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2BdrvxhsoCSrqsNWU-A5fCdPeMWV7AiN05%3DTM8-a0Wd0K8yuFA%40mail.gmail.com
>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2BdrvxhsoCSrqsNWU-A5fCdPeMWV7AiN05%3DTM8-a0Wd0K8yuFA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> - Website: https://apereo.github.io/cas
>> - Gitter Chatroom: https://gitter.im/apereo/cas
>> - List Guidelines: https://goo.gl/1VRrw7
>> - Contributions: https://goo.gl/mh7qDG
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "CAS Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/CADdNXfHhNwBwdT7VKd0gnQ1XowNBdjb7GyVLg7oeKG8QAC8yTg%40mail.gmail.com
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CADdNXfHhNwBwdT7VKd0gnQ1XowNBdjb7GyVLg7oeKG8QAC8yTg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2BdrvxgwBe6py%3DkRo3COBDa7FaQyr_Ve1FKJFtmc4XjVKUZDvQ%40mail.gmail.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2BdrvxgwBe6py%3DkRo3COBDa7FaQyr_Ve1FKJFtmc4XjVKUZDvQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CADdNXfEO3DX_RjkRgr3rsdtt%2BCgY%3DR1d5_w2W6CFaZNi61_qwA%40mail.gmail.com.

Reply via email to