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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...