All Apps and Add-ons

Predict Categorical Fields Email SPAM giving error of "No valid fields to fit or apply model to."

joomla
Engager

Hi Splunk Community,

Sorry if my question is basic but I am new to ML usage in Splunk. I saw an inbuilt example of Splunk ML model which is to predict the presence of malware. So my idea was to use the the same model which contains email data with status of "malicious" or "not". 

I used around 2000 malicious emails and 2500 thousand non malicious emails.

When I am using that CSV file in Predict Categorical Fields using any ML model like logistic-categorical or random-forest I am getting error of "No valid fields to fit or apply mode to.

Here I am trying to predict the status field.

SPL Query:

| inputlookup email_data.csv | head 5000| fit LogisticRegression fit_intercept=true "status" from "fromAddress" "messageid" "senderIP" "senderdomain" "subject" into "example_malware"

Any help of if anyone implemented this and can suggest me with example would be really helpful.

Labels (4)
0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...