When using caPutLog, to avoid the info be flushed in your IOC terminal output due to its max line limit, you might want to redirect the output which you are interested into an external server, and you can
always look back later.
At APS, we are using logstash to save the info we are interested in.
Thanks,
Guobao
From:
Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of LiangChih Chiang via Tech-talk <tech-talk at aps.anl.gov>
Date: Sunday, May 11, 2025 at 9:30 PM
To: Mercado, Ronaldo (DLSLtd,RAL,LSCI) <ronaldo.mercado at diamond.ac.uk>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Re: How to know which CA client(IP address) modified a PV
I tried caPutLog and succeeded.
Need more time to configure the access security file to restrict what to log.
I can't find the document of the pvlogging module.
Hi,
I have used pvlogging for this purpose.
https://github.com/DiamondLightSource/pvlogging
Regards,
Ronaldo
caPutLog seems to be a satisfying solution. I will give it a try.
The log messages include host information as the following excerpt from the documentation:
The actual log message sent from the IOC has this format:
<iocLogPrefix><date> <time> <host> <user> <pv> <change>
On 05/09, LiangChih Chiang via Tech-talk wrote:
> How to know which CA client(IP address) modified a PV in EPICS version 3.14.
>
> I searched and got two methods:
>
> What other methods do you use or recommend?
Haven't used it myself, but there's caPutLog:
https://github.com/epics-modules/caPutLog
Lewis
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an
authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual
and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom.
|