Skip to content

Dvpl 11009 -- Removed support for Modular Inputs from the SDK #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 19, 2022
Merged
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
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ serviceWithBearerToken.get("search/jobs", { count: 2 }, function (err, res) {
});
```

### Modular inputs examples
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.

## SDK examples

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).
Expand Down Expand Up @@ -329,7 +332,7 @@ To learn about our branching model, see [Branching Model](https://github.com/spl
| [REST API Reference Manual](https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTprolog) | Splunk REST API reference documentation |
| [Splunk>Docs](https://docs.splunk.com/Documentation) | General documentation for the Splunk platform |
| [GitHub Wiki](https://github.com/splunk/splunk-sdk-javascript/wiki/) | Documentation for this SDK's repository on GitHub |
| [Splunk JavaScript SDK Examples](https://github.com/splunk/splunk-app-examples) | modular inputs, server- and client-based examples for the Splunk JavaScript SDK |
| [Splunk JavaScript SDK Examples](https://github.com/splunk/splunk-app-examples) | server- and client-based examples for the Splunk JavaScript SDK |


## Community
Expand Down
14 changes: 1 addition & 13 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,15 +618,6 @@
"lib/async.js",
"lib/context.js",
"lib/service.js",
"lib/modularinputs/argument.js",
"lib/modularinputs/event.js",
"lib/modularinputs/eventwriter.js",
"lib/modularinputs/inputdefinition.js",
"lib/modularinputs/logger.js",
"lib/modularinputs/modularinput.js",
"lib/modularinputs/scheme.js",
"lib/modularinputs/utils.js",
"lib/modularinputs/validationdefinition.js"
];

var comments = [];
Expand Down Expand Up @@ -722,10 +713,7 @@

var files = args
.map(arg => {
if (arg.indexOf('modularinputs') >= 0) {
return path.join(TEST_DIRECTORY, 'modularinputs', TEST_PREFIX + arg.split('/')[1] + ".js");
}
else if (arg.indexOf('service_tests') >= 0) {
if (arg.indexOf('service_tests') >= 0) {
return path.join(TEST_DIRECTORY, 'service_tests', arg.split('/')[1] + ".js");
}
else {
Expand Down
Loading