Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Splunk: Python Lookup
(edit)
Revision as of 14:51, 14 November 2019
No change in size
,
14:51, 14 November 2019
m
no edit summary
Line 1:
Line 1:
Copy requirements to /opt/splunk/lib/python2.7/site-packages
Copy requirements to /opt/splunk/lib/python2.7/site-packages
−
Including
SplunkLookup
.py:<syntaxhighlight lang="python">
+
Including
splunk_lookup
.py:<syntaxhighlight lang="python">
import csv
import csv
import sys
import sys
Line 67:
Line 67:
</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">
from splunk_lookup import SplunkLookup
from splunk_lookup import SplunkLookup
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version