Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/async/async.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import sys, datetime
import urllib
from time import sleep
sys.path.insert(0, '../')

import splunklib.binding as binding
import splunklib.client as client
Expand Down
1 change: 1 addition & 0 deletions examples/binding1.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
entities and 'method-like' endpoints."""

import sys
sys.path.insert(0, '../')

from splunklib.binding import connect

Expand Down
1 change: 1 addition & 0 deletions examples/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""Create, delete or list stanza information from/to Splunk confs."""

import sys
sys.path.insert(0, '../')

from splunklib.client import connect
from utils import error, parse
Expand Down
1 change: 1 addition & 0 deletions examples/event_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""A command line utility that lists Splunk event types."""

import sys
sys.path.insert(0, '../')

from splunklib.client import connect

Expand Down
1 change: 1 addition & 0 deletions examples/fired_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""A command line utility that prints out fired alerts."""

import sys
sys.path.insert(0, '../')

from splunklib.client import connect

Expand Down
1 change: 1 addition & 0 deletions examples/follow.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

from pprint import pprint
import sys
sys.path.insert(0, '../')
import time

import splunklib.client as client
Expand Down
1 change: 1 addition & 0 deletions examples/handlers/handler_certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import ssl
import socket
import sys
sys.path.insert(0, '../')
import urllib
import urlparse

Expand Down
1 change: 1 addition & 0 deletions examples/handlers/handler_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from pprint import pprint
from StringIO import StringIO
import sys
sys.path.insert(0, '../')
import urllib2

import splunklib.binding as binding
Expand Down
1 change: 1 addition & 0 deletions examples/handlers/handler_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from pprint import pprint
from StringIO import StringIO
import sys
sys.path.insert(0, '../')
import urllib2

import splunklib.client as client
Expand Down
1 change: 1 addition & 0 deletions examples/handlers/handler_urllib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from pprint import pprint
from StringIO import StringIO
import sys
sys.path.insert(0, '../')
import urllib2

import splunklib.client as client
Expand Down
1 change: 1 addition & 0 deletions examples/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""A command line utility for interacting with Splunk indexes."""

import sys
sys.path.insert(0, '../')

from splunklib.client import connect

Expand Down
1 change: 1 addition & 0 deletions examples/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""An example that prints Splunk service info & settings."""

import sys
sys.path.insert(0, '../')

import splunklib.client as client

Expand Down
1 change: 1 addition & 0 deletions examples/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""A command line utility for interacting with Splunk inputs."""

import sys
sys.path.insert(0, '../')

from splunklib.client import connect

Expand Down
1 change: 1 addition & 0 deletions examples/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from pprint import pprint
import sys
sys.path.insert(0, '../')

from splunklib.client import connect
from utils import error, parse, cmdline
Expand Down
1 change: 1 addition & 0 deletions examples/loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
current logging level."""

import sys
sys.path.insert(0, '../')

import splunklib.client as client

Expand Down
1 change: 1 addition & 0 deletions examples/oneshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from pprint import pprint
import socket
import sys
sys.path.insert(0, '../')

from splunklib.client import connect
import splunklib.results as results
Expand Down
1 change: 1 addition & 0 deletions examples/saved_searches.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""A command line utility that lists saved searches."""

import sys
sys.path.insert(0, '../')

from splunklib.client import connect

Expand Down
1 change: 1 addition & 0 deletions examples/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from pprint import pprint

import sys
sys.path.insert(0, '../')
from time import sleep

from splunklib.binding import HTTPError
Expand Down
1 change: 1 addition & 0 deletions examples/spcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
except ImportError:
pass
import sys
sys.path.insert(0, '../')

import splunklib.client as client

Expand Down
1 change: 1 addition & 0 deletions examples/spurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""A simple command line interface for the Splunk REST APIs."""

import sys
sys.path.insert(0, '../')
from xml.etree import ElementTree

import splunklib.binding as binding
Expand Down
1 change: 1 addition & 0 deletions examples/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""A command line utility that submits event data to Splunk from stdin."""

import sys
sys.path.insert(0, '../')

import splunklib.client as client

Expand Down
2 changes: 1 addition & 1 deletion examples/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from os import path
import sys

sys.path.insert(0, '../')
import splunklib.client as client

from utils import *
Expand Down
4 changes: 2 additions & 2 deletions splunklib/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# these three values and the library will reconcile the triple, overriding the
# provided values as appropriate.
#
# Finally, if no namspacing is specified the library will make use of the
# Finally, if no namespacing is specified the library will make use of the
# `/services` branch of the REST API which provides a namespaced view of
# Splunk resources equivelent to using owner={currentUser} and app={defaultApp}
#
Expand Down Expand Up @@ -296,7 +296,7 @@ def __init__(self, response):
self.body = body

#
# The HTTP interface used by the Splunk binding layer abstracts the unerlying
# The HTTP interface used by the Splunk binding layer abstracts the underlying
# HTTP library using request & response 'messages' which are implemented as
# dictionaries with the following structure:
#
Expand Down
Loading