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!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...