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!

Splunk Platform | Upgrading your Splunk Deployment to Python 3.9

Splunk initially announced the removal of Python 2 during the release of Splunk Enterprise 8.0.0, aiming to ...

From Product Design to User Insights: Boosting App Developer Identity on Splunkbase

co-authored by Yiyun Zhu & Dan Hosaka Engaging with the Community at .conf24 At .conf24, we revitalized the ...

Detect and Resolve Issues in a Kubernetes Environment

We’ve gone through common problems one can encounter in a Kubernetes environment, their impacts, and the ...