# time stamp rule with no date data

**URL:** <https://community.dynatrace.com/t/time-stamp-rule-with-no-date-data/49387>\
**Category:** Logs\
**Tags:** log-processing, logs\
**Created:** [December 16, 2024, 9:50pm UTC](https://community.dynatrace.com/t/time-stamp-rule-with-no-date-data/49387 "2024-12-16T21:50:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenM](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@stephenM](https://community.dynatrace.com/u/stephenM)\
**Post date:** [December 16, 2024, 9:50pm UTC](https://community.dynatrace.com/t/time-stamp-rule-with-no-date-data/49387/1 "2024-12-16T21:50:37Z")

</div>

I have a log that does not contain any date data, only a time stamp. when I try to create a time stamp processing rule it won’t let me save it saying I am missing month and day.

How can I get the time to be recognized correctly?&nbsp;&nbsp;

 ![2024-12-16_12-34-54.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/d/7da8c8f1f053d044a6f9014e74f98b0559743dd7.png)

---

<div class="post-metadata">

**Author:** ![RohitBisht](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rohitbisht/32/38577_2.png) [@RohitBisht](https://community.dynatrace.com/u/RohitBisht)\
**Post date:** [December 17, 2024, 4:40am UTC](https://community.dynatrace.com/t/time-stamp-rule-with-no-date-data/49387/2 "2024-12-17T04:40:14Z")

</div>

Hi Stephen,

Dynatrace needs both date and time in the timestamp to recognize it correctly. My recommendation is to fix the timestamp from the source. However if it is not possible, i have worked on this processing rule which can append the current date to the timestamp.

After creating this rule either it will be autodetected or you can create a timestamp rule. Cheers!  
USING(INOUT content)  
|FIELDS\_ADD(DAY(now()),MONTH(now()),year(now()))  
| FIELDS\_ADD(date: CONCAT(year, month, day))  
| FIELDS\_ADD(content: concat(date, " ", content))

 ![RohitBisht_0-1734410364887.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/6/76bec78cd4b07bd60747f7db25f93d83a5278753.png)
