Refine your search:

My email alerts coming out of the system for simple timecharts and stats have _time in epoch format. Is there a master configuration that will convert these to default to a standard datetime format.

asked 26 Jan '11, 17:57

geoffn's gravatar image

geoffn
313
accept rate: 0%


2 Answers:

_time is in epoch time and cannot be changed. You can however, for reporting reasons, convert it to local time as desired by using:

| convert ctime(_time) as LOCALTIME

Then if you notice, you will have a new field called LOCALTIME which should be what you wanted...

link

answered 26 Jan '11, 18:33

Genti's gravatar image

Genti ♦
3.8k5441
accept rate: 37%

Practically speaking, Genti has your answer: make a new field, optionally hide the _time field (with |fields).

I think there's an Enhancement Request here for formatting in email alerts. I'd appreciate if you could toss an email to support about it. Product management really grooves on stuff like, if you're willing. Not elaborate, but a thumbnail sketch.

  • Here is our situation/what we are doing
  • Here is what we want splunk to do
  • To meet our needs like so

Personally I wonder if this relates to general email formatting/presentation needs. Some questions I'd think to ask as an engineer: Is this needed for CSV, or table, or html output? All? None? Will typing a strftime string into a conf file get the job done?

link

answered 26 Jan '11, 19:38

jrodman's gravatar image

jrodman ♦
7.0k21027
accept rate: 41%

Appreciate the answers. I will submit a enhancement request. I had a heck of a time with this one but probably just due to my lack of experience. I was producing an email alert that compared todays values to last weeks values (following the advice in http://answers.splunk.com/questions/2712/line-chart-comparing-yesterdays-result-with-todays-result-in-dashboard). However, I could never get the time right until I converted this to a table and played around with time format function quite a bit. Everything in the UI looked good but the email converted back to Epoch.

(27 Jan '11, 16:44) geoffn
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×181

Asked: 26 Jan '11, 17:57

Seen: 1,179 times

Last updated: 07 Apr '11, 23:22

Copyright © 2005-2012 Splunk Inc. All rights reserved.