All Apps and Add-ons

example for inputs.txt

hgehrts_splunk
Splunk Employee
Splunk Employee

can you provide an example for the inputs.txt?

0 Karma

hgehrts_splunk
Splunk Employee
Splunk Employee

to be more clear: it seems like the inputs.txt commands do not work with our latest nexus switch version. This is what we've got:
header_str": "Cisco Nexus Operating System (NX-OS) Software\nTAC support: ...",
"bios_ver_str": "07.64",
"kickstart_ver_str": "7.0(3)I7(5a)",
"bios_cmpl_time": "05/17/2018",
"kick_file_name": "bootflash:///nxos.7.0.3.I7.5a.bin",
"kick_cmpl_time": " 10/12/2018 19:00:00",
"kick_tmstmp": "10/13/2018 05:16:04",
"chassis_id": "Nexus9000 93180YC-EX chassis",
"cpu_name": "Intel(R) Xeon(R) CPU @ 1.80GHz",

when we use the commands from the inputs.txt, we get errors in the nexus web UI:

{
"ins_api": {
"version": "1.0",
"type": "cli_show",
"chunk": "0",
"sid": "1",
"input": "show hostname,nxhostname",
"output_format": "json"
}
}

result in:
{
"ins_api": {
"type": "cli_show",
"version": "1.0",
"sid": "eoc",
"outputs": {
"output": {
"clierror": "% Invalid command\n",
"input": "show hostname,nxhostname",
"msg": "Input CLI command error",
"code": "400"
}
}
}
}

0 Karma

gouravdashtcs
Loves-to-Learn

Hello Hgehrts,

You can find the details for the inputs.conf file in the below splunk doc link.

https://docs.splunk.com/Documentation/Splunk/7.2.3/Updating/Exampleaddaninputtoforwarders

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...