Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do we convert unix time into string and string back to unix time format?



How do we convert unix time into string and string back to unix time format?..

Answer / Deepak Singh Rathore

In Splunk, you can convert Unix time to a readable date/time string using the strftime function (e.g., index=_internal| timechart span=1h by _time| eval date=`strftime("%Y-%m-%d %H:%M:%S",_time)`). To convert a string back to Unix time, use the strptime function (e.g., index=_internal | eval unixtime = strptime(date, "%Y-%m-%d %H:%M:%S")).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Splunk Interview Questions

What is time zone property in splunk?

1 Answers  


Where is splunk default configuration stored?

1 Answers  


Define splunk buckets?

1 Answers  


What is the role of Deployment server?

1 Answers  


Why is splunk used for analyzing machine data?

1 Answers  


What is the use of a summary index?

1 Answers  


Explain splunk rest api?

1 Answers  


What is a replace command?

1 Answers  


Name the command which is used to the “filtering results” category?

1 Answers  


What is a join command?

1 Answers  


What is the use of time zone property in splunk? When is it required the most?

1 Answers  


What is the difference between search time and index time field extractions?

1 Answers  


Categories