Skip to content

Commit 87e7cd2

Browse files
authored
Merge pull request #153 from splunk/DVPL-11009
Removed support for Modular Inputs from the SDK
2 parents 62978bc + 37a1dc0 commit 87e7cd2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+69641
-81327
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ serviceWithBearerToken.get("search/jobs", { count: 2 }, function (err, res) {
177177
});
178178
```
179179

180+
### Modular inputs examples
181+
Support for modular inputs is removed from Splunk Enterprise SDK for JavaScript and we recommand to use [Splunk Enterprise SDK for Python](https://github.com/splunk/splunk-sdk-python) for the modular inputs. See the [Python SDK modular inputs example](https://github.com/splunk/splunk-app-examples/tree/master/modularinputs/python) and [PythonSDK modular inputs docs](https://dev.splunk.com/enterprise/docs/devtools/python/sdk-python/howtousesplunkpython/howtocreatemodpy) for reference.
182+
180183
## SDK examples
181184

182185
The Splunk Enterprise SDK for JavaScript contains several server- and client-based examples, which are located in the [Splunk App Example repo](https://github.com/splunk/splunk-app-examples).
@@ -329,7 +332,7 @@ To learn about our branching model, see [Branching Model](https://github.com/spl
329332
| [REST API Reference Manual](https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTprolog) | Splunk REST API reference documentation |
330333
| [Splunk>Docs](https://docs.splunk.com/Documentation) | General documentation for the Splunk platform |
331334
| [GitHub Wiki](https://github.com/splunk/splunk-sdk-javascript/wiki/) | Documentation for this SDK's repository on GitHub |
332-
| [Splunk JavaScript SDK Examples](https://github.com/splunk/splunk-app-examples) | modular inputs, server- and client-based examples for the Splunk JavaScript SDK |
335+
| [Splunk JavaScript SDK Examples](https://github.com/splunk/splunk-app-examples) | server- and client-based examples for the Splunk JavaScript SDK |
333336

334337

335338
## Community

bin/cli.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -618,15 +618,6 @@
618618
"lib/async.js",
619619
"lib/context.js",
620620
"lib/service.js",
621-
"lib/modularinputs/argument.js",
622-
"lib/modularinputs/event.js",
623-
"lib/modularinputs/eventwriter.js",
624-
"lib/modularinputs/inputdefinition.js",
625-
"lib/modularinputs/logger.js",
626-
"lib/modularinputs/modularinput.js",
627-
"lib/modularinputs/scheme.js",
628-
"lib/modularinputs/utils.js",
629-
"lib/modularinputs/validationdefinition.js"
630621
];
631622

632623
var comments = [];
@@ -722,10 +713,7 @@
722713

723714
var files = args
724715
.map(arg => {
725-
if (arg.indexOf('modularinputs') >= 0) {
726-
return path.join(TEST_DIRECTORY, 'modularinputs', TEST_PREFIX + arg.split('/')[1] + ".js");
727-
}
728-
else if (arg.indexOf('service_tests') >= 0) {
716+
if (arg.indexOf('service_tests') >= 0) {
729717
return path.join(TEST_DIRECTORY, 'service_tests', arg.split('/')[1] + ".js");
730718
}
731719
else {

0 commit comments

Comments
 (0)