Splunk Search

Date format

efelder0
Communicator

I am having an issue with outputting a Date/Time stamp. Here is the scenario:

  • Indexing a CSV file containing a field "Current_Date"
  • In my output file, I am concatenating that "Current_Date" field with the Splunk _indextime into a field called "CreateTimeStamp"
  • However, this is my output --> Current_Date value is '1', _indextime = "15:40". Need it to look like "10/14/2012 15:40"

Snippet from prop.conf:
SHOULD_LINEMERGE = false

BREAK_ONLY_BEFORE = \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}

TIME_PREFIX = ^([^,]+,){9}
TIME_FORMAT = %m/%d/%Y %H:%M

LINE_BREAKER = ([\r\n]+)[A-Z0-9-]+,

REPORT-csvepo3 = csvepo3
TRANSFORMS-removeheader4 = removeheader4

Snippet from transforms.conf:

[removeheader4]
REGEX = ^System_Name,Last_Comm,Last_Comm_Diff
DEST_KEY = queue
FORMAT = nullQueue

Any suggestions?

Tags (1)
0 Karma
1 Solution

efelder0
Communicator

further modifications to the transforms.conf fixed the issue.

View solution in original post

0 Karma

efelder0
Communicator

further modifications to the transforms.conf fixed the issue.

0 Karma
Get Updates on the Splunk Community!

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...