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, Karma 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, Karma would be appreciated.

richgalloway
SplunkTrust
SplunkTrust

What are the props.conf settings for that sourcetype?

---
If this reply helps you, Karma 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, Karma would be appreciated.
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...