Getting Data In

Why does "splunk train cmd classify" say "Parameters must be in the form '-parameter value'

mpatnode
Path Finder

I tried "splunk train sourcetype filename sourcename" and received the same error. Then I found this answer and got the following:

$ /opt/splunk/bin/splunk train cmd classify /home/mike/work/current/tests/last_2k3.log centrifydc Parameters must be in the form '-parameter value'

So back to the original question, do you pass the train command a sample log file, or something else?

Tags (2)
1 Solution

rroberts
Splunk Employee
Splunk Employee

Remove the word train in your command. Classify replaces train.

View solution in original post

rroberts
Splunk Employee
Splunk Employee

Remove the word train in your command. Classify replaces train.

mpatnode
Path Finder

Doh! Awsome. Thanks.

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 ...