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
Observer

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
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!