Server IP : 162.214.80.37 / Your IP : 216.73.216.109 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /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 ); } }