Changes

Jump to navigation Jump to search
15 bytes removed ,  15:09, 14 November 2019
m
no edit summary
Line 24: Line 24:  
     @staticmethod
 
     @staticmethod
 
     def read_arguments():
 
     def read_arguments():
         ipfield = sys.argv[2]
+
         arg1 = sys.argv[1]
         location = sys.argv[1]
+
         arg2 = sys.argv[2]
         return ipfield, location
+
         return arg1, arg2
    
     @staticmethod
 
     @staticmethod
Line 65: Line 65:  
class SplunkLookupError(object):
 
class SplunkLookupError(object):
 
     pass
 
     pass
   
</syntaxhighlight>Create your own lookup in: /opt/splunk/etc/system/bin
 
</syntaxhighlight>Create your own lookup in: /opt/splunk/etc/system/bin
 
Example : geoip.py<syntaxhighlight lang="python">
 
Example : geoip.py<syntaxhighlight lang="python">

Navigation menu