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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...