-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor how we get splunk status response. (#114)
* Refactor how we get splunk status response.
- Loading branch information
1 parent
7e07efe
commit fea0120
Showing
6 changed files
with
922 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
270 changes: 270 additions & 0 deletions
270
tests/stix_transmission/splunk/api_response/status_by_sid_failed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,270 @@ | ||
{ | ||
"links": {}, | ||
"origin": "https://9.99.999.99:0123/services/search/jobs", | ||
"updated": "2018-09-13T09:49:40+00:00", | ||
"generator": { | ||
"build": "2b5b15c4ee89", | ||
"version": "7.0.1" | ||
}, | ||
"entry": [ | ||
{ | ||
"name": "search eventtype=network_traffic | fields tag| spath", | ||
"id": "https://9.99.999.99:0123/services/search/jobs/1536832140.4293", | ||
"updated": "2018-09-13T09:49:40.645+00:00", | ||
"links": { | ||
"alternate": "/services/search/jobs/1536832140.4293", | ||
"search.log": "/services/search/jobs/1536832140.4293/search.log", | ||
"events": "/services/search/jobs/1536832140.4293/events", | ||
"results": "/services/search/jobs/1536832140.4293/results", | ||
"results_preview": "/services/search/jobs/1536832140.4293/results_preview", | ||
"timeline": "/services/search/jobs/1536832140.4293/timeline", | ||
"summary": "/services/search/jobs/1536832140.4293/summary", | ||
"control": "/services/search/jobs/1536832140.4293/control" | ||
}, | ||
"published": "2018-09-13T09:49:00.000+00:00", | ||
"author": "bhavesh", | ||
"content": { | ||
"canSummarize": false, | ||
"cursorTime": "1970-01-01T00:00:00.000+00:00", | ||
"defaultSaveTTL": "604800", | ||
"defaultTTL": "600", | ||
"delegate": "", | ||
"diskUsage": 73728, | ||
"dispatchState": "FAILED", | ||
"doneProgress": 1, | ||
"dropCount": 0, | ||
"earliestTime": "2018-04-20T12:36:17.000+00:00", | ||
"eventAvailableCount": 1, | ||
"eventCount": 1, | ||
"eventFieldCount": 10, | ||
"eventIsStreaming": true, | ||
"eventIsTruncated": false, | ||
"eventSearch": "search eventtype=network_traffic | fields tag | spath ", | ||
"eventSorting": "desc", | ||
"indexEarliestTime": 1535991010, | ||
"indexLatestTime": 1535991010, | ||
"isBatchModeSearch": false, | ||
"isDone": true, | ||
"isEventsPreviewEnabled": false, | ||
"isFailed": false, | ||
"isFinalized": false, | ||
"isPaused": false, | ||
"isPreviewEnabled": false, | ||
"isRealTimeSearch": false, | ||
"isRemoteTimeline": false, | ||
"isSaved": false, | ||
"isSavedSearch": false, | ||
"isTimeCursored": true, | ||
"isZombie": false, | ||
"keywords": "eventtype::network_traffic", | ||
"label": "", | ||
"normalizedSearch": "litsearch (index=shifter log_type=\"network\") | fields tag | spath | fields keepcolorder=t \"_bkt\" \"_cd\" \"_si\" \"host\" \"index\" \"linecount\" \"source\" \"sourcetype\" \"splunk_server\"", | ||
"numPreviews": 0, | ||
"optimizedSearch": "| search eventtype=network_traffic | fields tag | spath", | ||
"pid": "9663", | ||
"priority": 5, | ||
"provenance": "", | ||
"remoteSearch": "litsearch (index=shifter log_type=\"network\") | fields tag | spath | fields keepcolorder=t \"_bkt\" \"_cd\" \"_si\" \"host\" \"index\" \"linecount\" \"source\" \"sourcetype\" \"splunk_server\"", | ||
"reportSearch": "", | ||
"resultCount": 1, | ||
"resultIsStreaming": true, | ||
"resultPreviewCount": 1, | ||
"runDuration": 0.242112944, | ||
"sampleRatio": "1", | ||
"sampleSeed": "0", | ||
"scanCount": 2, | ||
"searchCanBeEventType": false, | ||
"searchTotalBucketsCount": 4, | ||
"searchTotalEliminatedBucketsCount": 2, | ||
"sid": "1536832140.4293", | ||
"statusBuckets": 0, | ||
"ttl": 600, | ||
"performance": { | ||
"command.fields": { | ||
"duration_secs": 0.001, | ||
"invocations": 2, | ||
"input_count": 2, | ||
"output_count": 2 | ||
}, | ||
"command.search": { | ||
"duration_secs": 0.004, | ||
"invocations": 1, | ||
"input_count": 0, | ||
"output_count": 1 | ||
}, | ||
"command.search.calcfields": { | ||
"duration_secs": 0.001, | ||
"invocations": 1, | ||
"input_count": 2, | ||
"output_count": 2 | ||
}, | ||
"command.search.expand_search": { | ||
"duration_secs": 0.026, | ||
"invocations": 1 | ||
}, | ||
"command.search.fieldalias": { | ||
"duration_secs": 0.001, | ||
"invocations": 1, | ||
"input_count": 2, | ||
"output_count": 2 | ||
}, | ||
"command.search.filter": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"command.search.index": { | ||
"duration_secs": 0.002, | ||
"invocations": 2 | ||
}, | ||
"command.search.index.usec_1_8": { | ||
"invocations": 85 | ||
}, | ||
"command.search.kv": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"command.search.lookups": { | ||
"duration_secs": 0.001, | ||
"invocations": 1, | ||
"input_count": 2, | ||
"output_count": 2 | ||
}, | ||
"command.search.parse_directives": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"command.search.rawdata": { | ||
"duration_secs": 0.002, | ||
"invocations": 1 | ||
}, | ||
"command.search.summary": { | ||
"invocations": 1 | ||
}, | ||
"command.search.tags": { | ||
"duration_secs": 0.001, | ||
"invocations": 1, | ||
"input_count": 1, | ||
"output_count": 1 | ||
}, | ||
"command.search.typer": { | ||
"duration_secs": 0.001, | ||
"invocations": 1, | ||
"input_count": 1, | ||
"output_count": 1 | ||
}, | ||
"command.spath": { | ||
"duration_secs": 0.001, | ||
"invocations": 1, | ||
"input_count": 1, | ||
"output_count": 1 | ||
}, | ||
"dispatch.check_disk_usage": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"dispatch.createdSearchResultInfrastructure": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"dispa100 5684 100 5668 100 16 10361 29 --:--:-- --:--:-- --:--:-- 10704patch.evaluate.fields": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"dispatch.evaluate.noop": { | ||
"invocations": 1 | ||
}, | ||
"dispatch.evaluate.search": { | ||
"duration_secs": 0.04, | ||
"invocations": 1 | ||
}, | ||
"dispatch.evaluate.spath": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"dispatch.fetch": { | ||
"duration_secs": 0.052, | ||
"invocations": 2 | ||
}, | ||
"dispatch.localSearch": { | ||
"duration_secs": 0.004, | ||
"invocations": 1 | ||
}, | ||
"dispatch.optimize.FinalEval": { | ||
"duration_secs": 0.041, | ||
"invocations": 1 | ||
}, | ||
"dispatch.optimize.matchReportAcceleration": { | ||
"duration_secs": 0.142, | ||
"invocations": 1 | ||
}, | ||
"dispatch.optimize.optimization": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"dispatch.optimize.reparse": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"dispatch.optimize.toJson": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"dispatch.optimize.toSpl": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"dispatch.readEventsInResults": { | ||
"duration_secs": 0.001, | ||
"invocations": 1 | ||
}, | ||
"dispatch.stream.local": { | ||
"duration_secs": 0.004, | ||
"invocations": 1 | ||
}, | ||
"dispatch.timeline": { | ||
"duration_secs": 0.002, | ||
"invocations": 2 | ||
}, | ||
"dispatch.writeStatus": { | ||
"duration_secs": 0.007, | ||
"invocations": 7 | ||
}, | ||
"startup.configuration": { | ||
"duration_secs": 0.015, | ||
"invocations": 1 | ||
}, | ||
"startup.handoff": { | ||
"duration_secs": 0.055, | ||
"invocations": 1 | ||
} | ||
}, | ||
"messages": [], | ||
"request": { | ||
"search": "search eventtype=network_traffic | fields tag| spath" | ||
}, | ||
"runtime": { | ||
"auto_cancel": "0", | ||
"auto_pause": "0" | ||
}, | ||
"searchProviders": ["splunk3-01.internal.resilientsystems.com"] | ||
}, | ||
"acl": { | ||
"perms": { | ||
"read": ["bhavesh"], | ||
"write": ["bhavesh"] | ||
}, | ||
"owner": "bhavesh", | ||
"modifiable": true, | ||
"sharing": "global", | ||
"app": "search", | ||
"can_write": true, | ||
"ttl": "600" | ||
} | ||
} | ||
], | ||
"paging": { | ||
"total": 1, | ||
"perPage": 0, | ||
"offset": 0 | ||
} | ||
} |
Oops, something went wrong.