Server IP : 111.118.215.189 / Your IP : 216.73.216.126 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/nxlog/modules/extension/perl/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/usr/bin/perl use strict; use warnings; use Log::Nxlog; use Socket; sub a_record_lookup { # The event data is passed here when this method is invoked by the module my ($event) = @_; Log::Nxlog::log_info('a_record_lookup triggered'); my $ptr = Log::Nxlog::get_field( $event, 'user_ip' ); my $ip = inet_ntoa( inet_aton($ptr) ); if ($ip) { Log::Nxlog::set_field_string( $event, 'user_ip', $ip ); } }