Security

CIM compliant date field

lilredcrawfish
Explorer

Afternoon,

 

I'm trying to format the date field for the malware data model.  Converting it from epoc.  But I dont know what format is wants I've guessed a bunch of different formats but it says they are unexpected.

 

"unexpected values"

 

| convert ctime(date) timeformat="%Y-%m-%dT%H:%M:%S"

 

| convert ctime(date) timeformat=" WHAT FORMAT SHOULD THIS BE?"

0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @lilredcrawfish 

Your timeformat is correct, testing an epoc date works fine. 

| makeresults | eval date="1623216888" 
| convert ctime(date) as new_date timeformat="%Y-%m-%dT%H:%M:%S" 
| table new_date

 Did you check your date fiels is the right epoc format?

-----

An upvote would be appreciated if it helps! 

0 Karma
Get Updates on the Splunk Community!

Detecting Brute Force Account Takeover Fraud with Splunk

This article is the second in a three-part series exploring advanced fraud detection techniques using Splunk. ...

Buttercup Games: Further Dashboarding Techniques (Part 9)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Buttercup Games: Further Dashboarding Techniques (Part 8)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...