Get visibility and insights across your whole organization, powering actions that improve security, reliability and innovation velocity.
Emit new event when a new alert is triggered in Splunk. See the documentation
Emit new event when a new search event is created. See the documentation
Emit new events when a search returns results in Splunk. See the documentation
Sends a new event to a specified Splunk index. See the documentation
Convert an object to a JSON format string
Retrieve the status of a previously executed Splunk search job. See the documentation
Add or subtract time from a given input
import { axios } from "@pipedream/platform";
import https from "https";
export default defineComponent({
props: {
splunk: {
type: "app",
app: "splunk",
}
},
async run({steps, $}) {
const selfSigned = this.splunk.$auth.self_signed;
const agent = new https.Agent({
rejectUnauthorized: !selfSigned
});
return await axios($, {
url: `${this.splunk.$auth.api_url}:${this.splunk.$auth.api_port}/services/authentication/current-context`,
httpsAgent: agent,
headers: {
"content-type": `application/json`,
"authorization": `Splunk ${this.splunk.$auth.api_token}`,
},
params: {
output_mode: `json`,
},
})
},
})
The Pipedream Utils app is a set of pre-built functions that streamline common tasks in your workflows. It acts like a Swiss Army knife for developers, providing essential tools such as format conversion, date manipulation, and text processing. By leveraging these functions, you can reduce the boilerplate code needed for routine operations, speeding up the development of intricate automations. The Helper Functions API can be a game changer when it comes to tasks like parsing dates in user-friendly formats, encoding and decoding data, or generating UUIDs, making them more efficient and less error-prone.
export default defineComponent({
props: {
pipedream_utils: {
type: "app",
app: "pipedream_utils",
}
},
async run({steps, $}) {
},
})