Fix other Splunk Add-on references

Replace all references to Splunk Add-on with Technical Add-on
Replace URLs
Remove splunkbase stuff
Add copyright
This commit is contained in:
Michael Erdely 2025-01-09 17:55:11 -05:00
parent 07122cafad
commit 7b0b703510
Signed by: mike
SSH key fingerprint: SHA256:ukbnfrRMaRYlBZXENtBTyO2jLnql5AA5m+SzZCfYQe0
24 changed files with 53 additions and 33 deletions

View file

@ -1,4 +1,8 @@
Splunk Add-on for Unix and Linux Technical Add-on for Unix and Linux
Copyright (C) 2025 Michael Erdely All Rights Reserved.
Copyright (C) 2024 Splunk Inc. All Rights Reserved. Copyright (C) 2024 Splunk Inc. All Rights Reserved.
For documentation, see: https://docs.splunk.com/Documentation/AddOns/released/UnixLinux/ For documentation, see: https://git.erdelynet.com/mike/TA-unix/src/branch/main/docs/ReleaseNotes.md
For documentation on Splunk's Add-on for Unix and Linux (which applies to this TA too), see:
https://docs.splunk.com/Documentation/AddOns/released/UnixLinux/

View file

@ -25,7 +25,7 @@ define([
root.ScriptedInput = root.Entity.extend({ root.ScriptedInput = root.Entity.extend({
path: function () { path: function () {
// Approximate path - accepts reads only // Approximate path - accepts reads only
// ex: data/inputs/script/%2FApplications%2Fsplunk_622light_unix%2Fetc%2Fapps%2FSplunk_TA_nix%2Fbin%2Fcpu.sh // ex: data/inputs/script/%2FApplications%2Fsplunk_622light_unix%2Fetc%2Fapps%2FTA-unix%2Fbin%2Fcpu.sh
return Paths.monitorInputs + '/' + encodeURIComponent(this.name) return Paths.monitorInputs + '/' + encodeURIComponent(this.name)
}, },

View file

@ -9,8 +9,8 @@ require([
'splunkjs/mvc/simplexml/ready!', 'splunkjs/mvc/simplexml/ready!',
'underscore', 'underscore',
'jquery', 'jquery',
'../app/Splunk_TA_nix/components/js_sdk_extensions/scripted_inputs', '../app/TA-unix/components/js_sdk_extensions/scripted_inputs',
'../app/Splunk_TA_nix/components/js_sdk_extensions/monitor_inputs' '../app/TA-unix/components/js_sdk_extensions/monitor_inputs'
], function (mvc, ignored, _, $, sdkx_scripted_inputs, sdkx_monitor_inputs) { ], function (mvc, ignored, _, $, sdkx_scripted_inputs, sdkx_monitor_inputs) {
var ScriptedInputs = sdkx_scripted_inputs.ScriptedInputs var ScriptedInputs = sdkx_scripted_inputs.ScriptedInputs
var MonitorInputs = sdkx_monitor_inputs.MonitorInputs var MonitorInputs = sdkx_monitor_inputs.MonitorInputs
@ -66,11 +66,11 @@ require([
var monitorInputs = {} var monitorInputs = {}
new MonitorInputs(service, { new MonitorInputs(service, {
owner: '-', owner: '-',
app: 'Splunk_TA_nix', app: 'TA-unix',
sharing: 'app' sharing: 'app'
}).fetch(function (err, inputs) { }).fetch(function (err, inputs) {
var inputsList = _.filter(inputs.list(), function (input) { var inputsList = _.filter(inputs.list(), function (input) {
return input.namespace.app === 'Splunk_TA_nix' return input.namespace.app === 'TA-unix'
}) })
_.each(inputsList, function (input) { _.each(inputsList, function (input) {
@ -93,7 +93,7 @@ require([
var scriptedMetricInputs = {} var scriptedMetricInputs = {}
new ScriptedInputs(service, { new ScriptedInputs(service, {
owner: '-', owner: '-',
app: 'Splunk_TA_nix', app: 'TA-unix',
sharing: 'app' sharing: 'app'
}).fetch(function (err, inputs) { }).fetch(function (err, inputs) {
var inputsList = _.filter(inputs.list(), function (input) { var inputsList = _.filter(inputs.list(), function (input) {
@ -101,7 +101,7 @@ require([
.substring(input.name.lastIndexOf('/') + 1) .substring(input.name.lastIndexOf('/') + 1)
.split('_') .split('_')
return ( return (
input.namespace.app === 'Splunk_TA_nix' && input.namespace.app === 'TA-unix' &&
input_name[input_name.length - 1] === 'metric.sh' input_name[input_name.length - 1] === 'metric.sh'
) )
}) })
@ -129,7 +129,7 @@ require([
var scriptedEventInputs = {} var scriptedEventInputs = {}
new ScriptedInputs(service, { new ScriptedInputs(service, {
owner: '-', owner: '-',
app: 'Splunk_TA_nix', app: 'TA-unix',
sharing: 'app' sharing: 'app'
}).fetch(function (err, inputs) { }).fetch(function (err, inputs) {
var inputsList = _.filter(inputs.list(), function (input) { var inputsList = _.filter(inputs.list(), function (input) {
@ -137,7 +137,7 @@ require([
.substring(input.name.lastIndexOf('/') + 1) .substring(input.name.lastIndexOf('/') + 1)
.split('_') .split('_')
return ( return (
input.namespace.app === 'Splunk_TA_nix' && input.namespace.app === 'TA-unix' &&
input_name[input_name.length - 1] !== 'metric.sh' input_name[input_name.length - 1] !== 'metric.sh'
) )
}) })

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@ -237,7 +238,7 @@ function show_inputs
script_list=$(get_script_list) script_list=$(get_script_list)
for line in $script_list; do for line in $script_list; do
case "$line" in case "$line" in
*unix* | *Splunk_TA_nix* ) get_scripted_input_status "$line"; input_counter=`expr $input_counter + 1`; *unix* | *TA-unix* ) get_scripted_input_status "$line"; input_counter=`expr $input_counter + 1`;
esac esac
done done
echo "" echo ""
@ -267,7 +268,7 @@ function enable_all_inputs
fi fi
if [ "$res" == "success" ] && [[ ( $line != *"_metric"* || $flag == 1 ) ]]; then if [ "$res" == "success" ] && [[ ( $line != *"_metric"* || $flag == 1 ) ]]; then
case "$line" in case "$line" in
*unix* | *Splunk_TA_nix* ) echo "enabling $line"; input_endpoint=$(build_scripted_input_endpoint "$line"); enable_scripted_input $input_endpoint;; *unix* | *TA-unix* ) echo "enabling $line"; input_endpoint=$(build_scripted_input_endpoint "$line"); enable_scripted_input $input_endpoint;;
esac esac
fi fi
done done
@ -289,7 +290,7 @@ function disable_all_inputs
script_list=$(get_script_list) script_list=$(get_script_list)
for line in $script_list; do for line in $script_list; do
case "$line" in case "$line" in
*unix* | *Splunk_TA_nix* ) echo "disabling $line"; input_endpoint=$(build_scripted_input_endpoint "$line"); disable_scripted_input $input_endpoint;; *unix* | *TA-unix* ) echo "disabling $line"; input_endpoint=$(build_scripted_input_endpoint "$line"); disable_scripted_input $input_endpoint;;
esac esac
done done
for line in $MONITOR_INPUTS; do for line in $MONITOR_INPUTS; do
@ -388,7 +389,7 @@ function clone_all_inputs
script_list=$(get_script_list) script_list=$(get_script_list)
for line in $script_list; do for line in $script_list; do
case "$line" in case "$line" in
*unix* | *Splunk_TA_nix* ) echo ""; echo " cloning $line to $server_name"; echo ""; scripted_clone "$line" *unix* | *TA-unix* ) echo ""; echo " cloning $line to $server_name"; echo ""; scripted_clone "$line"
esac esac
done done
for line in $MONITOR_INPUTS; do for line in $MONITOR_INPUTS; do
@ -642,7 +643,7 @@ function select_input_menu
script_list=$(get_script_list) script_list=$(get_script_list)
for line in $script_list; do for line in $script_list; do
case "$line" in case "$line" in
*unix* | *Splunk_TA_nix* ) echo " $input_counter - $line"; selection_list[$input_counter]=$line; input_counter=`expr $input_counter + 1`; *unix* | *TA-unix* ) echo " $input_counter - $line"; selection_list[$input_counter]=$line; input_counter=`expr $input_counter + 1`;
esac esac
done done
for line in $MONITOR_INPUTS; do for line in $MONITOR_INPUTS; do
@ -882,7 +883,7 @@ function set_unix_app_info
for line in $app_output; do for line in $app_output; do
case "$line" in case "$line" in
*unix* ) set_app_installed "unix";; *unix* ) set_app_installed "unix";;
*Splunk_TA_nix* ) set_app_installed "Splunk_TA_nix";; *TA-unix* ) set_app_installed "TA-unix";;
*ENABLED*) set_app_enabled;; *ENABLED*) set_app_enabled;;
#*DISABLED*) set_app_disabled;; #*DISABLED*) set_app_disabled;;
esac esac

View file

@ -1,3 +1,4 @@
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@ -20,19 +21,19 @@ class SetupService(splunk.rest.BaseRestHandler):
sessionKey = self.sessionKey sessionKey = self.sessionKey
try: try:
conf = bundle.getConf( conf = bundle.getConf(
"app", sessionKey, namespace="Splunk_TA_nix", owner="nobody" "app", sessionKey, namespace="TA-unix", owner="nobody"
) )
stanza = conf.stanzas["install"].findKeys("is_configured") stanza = conf.stanzas["install"].findKeys("is_configured")
if stanza: if stanza:
if stanza["is_configured"] == "0" or stanza["is_configured"] == "false": if stanza["is_configured"] == "0" or stanza["is_configured"] == "false":
conf["install"]["is_configured"] = "true" conf["install"]["is_configured"] = "true"
splunk.rest.simpleRequest( splunk.rest.simpleRequest(
"/apps/local/Splunk_TA_nix/_reload", sessionKey=sessionKey "/apps/local/TA-unix/_reload", sessionKey=sessionKey
) )
else: else:
conf["install"]["is_configured"] = "true" conf["install"]["is_configured"] = "true"
splunk.rest.simpleRequest( splunk.rest.simpleRequest(
"/apps/local/Splunk_TA_nix/_reload", sessionKey=sessionKey "/apps/local/TA-unix/_reload", sessionKey=sessionKey
) )
except Exception as e: except Exception as e:
self.response.write(e) self.response.write(e)

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2025 Michael Erdely All Rights Reserved.
# SPDX-FileCopyrightText: 2024 Splunk, Inc. # SPDX-FileCopyrightText: 2024 Splunk, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0

View file

@ -20,9 +20,9 @@ author = Michael Erdely
version = 9.2.0.1 version = 9.2.0.1
description = Technical Add-on for Unix and Linux description = Technical Add-on for Unix and Linux
[package] #[package]
id = TA-unix #id = TA-unix
check_for_updates = true #check_for_updates = true
[id] [id]
name = TA-unix name = TA-unix

View file

@ -4,11 +4,12 @@
--> -->
<dashboard script="setup_cloud.js" stylesheet="setup.css" version="1.1"> <dashboard script="setup_cloud.js" stylesheet="setup.css" version="1.1">
<label>Splunk Add-on for Unix and Linux: Setup</label> <label>Technical Add-on for Unix and Linux: Setup</label>
<row> <row>
<panel> <panel>
<html> <html>
<p>Please set up this add-on on your forwarders. Documentation on how to configure this add-on is <p>Please set up this add-on on your forwarders. Documentation on how to configure this add-on,
which is the same as the Splunk Add-on for Unix and Linux, is
<a target="_blank" href="http://docs.splunk.com/Documentation/UnixAddOn/latest/User/DeploytheSplunkAdd-onforUnixandLinuxinadistributedSplunkenvironment">here</a>. <a target="_blank" href="http://docs.splunk.com/Documentation/UnixAddOn/latest/User/DeploytheSplunkAdd-onforUnixandLinuxinadistributedSplunkenvironment">here</a>.
<br/> <br/>
Click on below button, if you are getting redirected to this page while editing the add-on's knowledge object. Click on below button, if you are getting redirected to this page while editing the add-on's knowledge object.

View file

@ -10,15 +10,15 @@
|| It has no effect on Splunk Enterprise. || It has no effect on Splunk Enterprise.
--> -->
<dashboard script="setup.js" stylesheet="setup.css" isVisible="false" version="1.1"> <dashboard script="setup.js" stylesheet="setup.css" isVisible="false" version="1.1">
<label>Splunk Add-on for Unix and Linux: Setup</label> <label>Technical Add-on for Unix and Linux: Setup</label>
<row> <row>
<html> <html>
<p id="overview"> <p id="overview">
The Splunk Add-on for Unix and Linux provides pre-built data inputs to facilitate The Technical Add-on for Unix and Linux provides pre-built data inputs to facilitate
Linux and Unix system monitoring using Splunk. Check out the Linux and Unix system monitoring using Splunk. Check out the
<a href="http://apps.splunk.com/app/833/" target="_blank"> <a href="https://git.erdelynet.com/mike/TA-unix" target="_blank">
Splunk for Unix Technical Add-on Technical Add-on for Unix and Linux
</a> page on <a href="http://apps.splunk.com/" target="_blank">Splunkbase</a> </a> page
for support information, the latest updates, and more. for support information, the latest updates, and more.
</p> </p>

View file

@ -549,7 +549,7 @@ FIELDALIAS-dest = host as dest
# Stanzas in this section are legacy configuration stanzas # Stanzas in this section are legacy configuration stanzas
# intended to support parsing of data created by scripts in # intended to support parsing of data created by scripts in
# TA-deploymentapps, which has since been retired. Systems that use # TA-deploymentapps, which has since been retired. Systems that use
# Splunk_TA_nix on the search head but which may be searching data # TA-unix on the search head but which may be searching data
# from forwarders on which the older scripts are still in use should # from forwarders on which the older scripts are still in use should
# be able to search new and old data seamlessly. # be able to search new and old data seamlessly.

View file

@ -652,7 +652,7 @@ os = enabled
# Stanzas in this section are legacy configuration stanzas # Stanzas in this section are legacy configuration stanzas
# intended to support parsing of data created by scripts in # intended to support parsing of data created by scripts in
# TA-deploymentapps, which has since been retired. Systems that use # TA-deploymentapps, which has since been retired. Systems that use
# Splunk_TA_nix on the search head but which may be searching data # TA-unix on the search head but which may be searching data
# from forwarders on which the older scripts are still in use should # from forwarders on which the older scripts are still in use should
# be able to search new and old data seamlessly. # be able to search new and old data seamlessly.

View file

@ -459,7 +459,7 @@ FORMAT = signature::$1
# Stanzas in this section are legacy configuration stanzas # Stanzas in this section are legacy configuration stanzas
# intended to support parsing of data created by scripts in # intended to support parsing of data created by scripts in
# TA-deploymentapps, which has since been retired. Systems that use # TA-deploymentapps, which has since been retired. Systems that use
# Splunk_TA_nix on the search head but which may be searching data # TA-unix on the search head but which may be searching data
# from forwarders on which the older scripts are still in use should # from forwarders on which the older scripts are still in use should
# be able to search new and old data seamlessly. # be able to search new and old data seamlessly.