Splunk Enterprise

Event has no datetime at the beginning splits into two events

simonEA
Explorer

Hi there, 

When reviewing Splunk events, some events display as below, it splits following text into two events; the second event has no datetime at the beginning, and the log is from log4net with datetime. 

...
FROM dbo.History202011 as QueryHistory Inner Join TmpQueryHistoryFilter tf on (QueryHistory.Email = tf.Email or tf.Email is null) WHERE date >= '2020-11-11' AND date <= '2020-11-12' AND (CreationDate BETWEEN '2020-11-11 16:00' AND '2020-11-12 16:00') AND QueryTypeID IN (1,4) AND CompanyID = 42 Order by QueryHistoryId offset 0 Limit 20 ) A CROSS JOIN TotalQueries B
 WHERE date >= '2020-11-11' AND date <= '2020-11-12'  AND (CreationDate BETWEEN '2020-11-11 16:00' AND '2020-11-12 16:00')  AND QueryTypeID IN (1,4)  AND CompanyID = 1000
 GROUP BY  QueryHistory.StatusID, QueryHistory.QueryFromId
,QueryHistory.QueryTypeID
,CASE WHEN QueryHistory.EAScore >=900 THEN 1...
When show source, it likes this:
simonEA_0-1605234534079.png

 

Any thought? 

 

Thanks, 

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust
That doesn't mean adding props.conf settings won't fix the problem.
---
If this reply helps you, an upvote would be appreciated.

View solution in original post

simonEA
Explorer

Thanks @richgalloway but most events are splitting correctly with the date in single line. 

0 Karma

richgalloway
SplunkTrust
SplunkTrust
That doesn't mean adding props.conf settings won't fix the problem.
---
If this reply helps you, an upvote would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

What are the props.conf settings for that sourcetype?

---
If this reply helps you, an upvote would be appreciated.
0 Karma

simonEA
Explorer

Thanks richgalloway, looks we have no such props.conf setting. 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That's likely to be the problem.  Every sourcetype onboarded should have a stanza in a props.conf file.  Without it, Splunk is just guessing about your data and could be guessing wrong (as in this case).

Each stanza in props.conf should at least specify these settings: LINE_BREAKER, TIME_PREFIX, TIME_FORMAT, MAX_TIMESTAMP_LOOKAHEAD, SHOULD_LINEMERGE, TRUNCATE.

---
If this reply helps you, an upvote would be appreciated.
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!