Skip to content

Commit 7ab8590

Browse files
authored
fix: index_fix (#94)
1 parent 807df44 commit 7ab8590

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/gettingstarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Search splunk, one event per trap command with the host value of the
136136
test machine ip will be found
137137

138138
``` bash
139-
index=em_logs sourcetype="sc4snmp:meta" SNMPv2_MIB__sysLocation_0="*" | dedup host
139+
index=em_meta sourcetype="sc4snmp:meta" SNMPv2_MIB__sysLocation_0="*" | dedup host
140140
```
141141

142142
``` bash

test/test_poller_integration.py

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

2323
def test_poller_integration_event(setup_splunk):
2424
logger.info(f"Integration test for poller event")
25-
search_string = 'search index="em_logs" sourcetype="sc4snmp:meta" earliest=-1m'
25+
search_string = 'search index="em_meta" sourcetype="sc4snmp:meta" earliest=-1m'
2626
result_count, events_count = splunk_single_search(setup_splunk, search_string)
2727
assert result_count > 0
2828
assert events_count > 0

test/test_walk_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
def test_walk_discovery(setup_splunk):
2525
logger.info(f"Integration test for poller walk")
26-
search_string = 'search index="em_logs" sourcetype="sc4snmp:walk"'
26+
search_string = 'search index="em_meta" sourcetype="sc4snmp:walk"'
2727
time.sleep(60)
2828
result_count, events_count = splunk_single_search(setup_splunk, search_string)
2929
assert result_count > 0
@@ -32,7 +32,7 @@ def test_walk_discovery(setup_splunk):
3232

3333
def test_walk_bulk(setup_splunk):
3434
logger.info(f"Integration test for poller walk")
35-
search_string = 'search index="em_logs" sourcetype="sc4snmp:meta" 1.3.6.1.2.1.2'
35+
search_string = 'search index="em_meta" sourcetype="sc4snmp:meta" 1.3.6.1.2.1.2'
3636
result_count, events_count = splunk_single_search(setup_splunk, search_string)
3737
assert result_count > 0
3838
assert events_count > 10

0 commit comments

Comments
 (0)