Dashboards & Visualizations

How to apply time-setting for different types of logs ?

georgear7
Communicator

I have different flavors of log files, below are those.

1. Each events having timestamp
2. Events without timestamp
3. Few events having timestamp, few doesn't.

For all these type of logs, i have one common source type because these are belongs to one app. Due to these varieties of logs, will it create any problem like logs not getting updated properly on time or sometime data itself is missing ? If that is the case, how to apply time-setting to fix the issue ?

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The app developers have not done you any favors.  If you have any influence over them, get them to fix the logs.  Otherwise, yes, you will have problems with that data.

Your best option (other than fixing the app) might be to specify DATETIME_CONFIG = current in props.conf.  That will apply the current timestamp to all events regardless of the presence of a timestamp in the event itself.

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

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

The app developers have not done you any favors.  If you have any influence over them, get them to fix the logs.  Otherwise, yes, you will have problems with that data.

Your best option (other than fixing the app) might be to specify DATETIME_CONFIG = current in props.conf.  That will apply the current timestamp to all events regardless of the presence of a timestamp in the event itself.

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

georgear7
Communicator

@richgalloway Thanks for your suggestion. Let me check on this and get back to you.

0 Karma
Get Updates on the Splunk Community!

App Building 101 - Build Your First App!

WATCH RECORDING NOW   Tech Talk: App Dev Edition Splunk has tons of out-of-the-box functionality, and you’ve ...

Introducing support for Amazon Data Firehose in Splunk Edge Processor

We’re excited to announce a powerful update to Splunk Data Management with added support for Amazon Data ...

The Observability Round-Up: September 2024

What’s up Splunk Community! Welcome to the latest edition of the Observability Round-Up, a monthly series in ...