Skip to content

Commit aeb2086

Browse files
updated for splunk_em.py
1 parent 40c354e commit aeb2086

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Intersight uses API keys to cryptographically sign API requests. To sign request
1414

1515
From here, the bulk of the work is contained in [input_module_intersight.py](input_module_intersight.py) and the connectivity is done with relatively straightforward usage of the Python Requests library.
1616

17+
To execute the Intersight-facing input code without Splunk, see [splunk_em.py](splunk_em.py). It provides a really minimal set of code that will allow it to call [input_module_intersight.py](input_module_intersight.py) and output some logging without an actual Splunk server. It does not persist any of the checkpoints so functionally it's like a first-run every time. This is really helpful for debugging and testing. It picks up the Intersight api key and secret key from a .env file.
18+
1719
## Distribution
1820

1921
This Add-on is available [from Splunkbase](https://splunkbase.splunk.com/app/6482/).

splunk_em.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import input_module_intersight
88

9-
load_dotenv('_brattice.env')
9+
load_dotenv('example.env')
1010

1111
# This code allows us to execute the input for testing without needing additional code from splunk
1212
# by providing a minimal sub-out of the two classes that splunk passes to the input

0 commit comments

Comments
 (0)