[SR-Users] logging core keywords

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 10 15:02:14 CET 2014


Hello,

dst_ip keyword corresponds to $Ri variable.

Cheers,
Daniel

On 10/12/14 14:54, Julien wrote:
> Hi,
> I'm still stuck with this issue.
> How can I log 'dst_ip' for example ?
>
> Thanks.
> Le 05/11/2014 17:52, Julien a écrit :
>> Hi,
>> I can't log some core keyword like 'dst_ip', 'src_ip'.
>> I try with
>>> xlog("L_ALERT","ALERT: dst_ip: dsr_ip\n "); # ==> that just print
>>> dst_ip
>>> $var(x)=dst_ip                        # ==>the config file is not
>>> valid due to this line
>>> xlog("L_ALERT","ALERT: dst_ip: $var(x)\n ");
>>
>> I found $Ri to match src_ip and $si to match src_ip, that I can log.
>>> xlog("L_ALERT","ALERT: dst_ip: $Ri\n");
>>> xlog("L_ALERT","ALERT: src_ip: $si\n");
>>
>> Is it the good way to print theses variables ?
>>
>> Thanks
>>
>

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-users mailing list