Setting a field in json as your _time field in Splunk

A problem I have been encountering is trying to set a date field within my json response file as the _time field in my Splunk data upon import. I have read lots of posts on it and found that less is more when it comes to accomplishing this. Adding the following stanza in a props.conf file in the /opt/splunkforwarder/etc/system/local folder accomplished this. As you can see by the path is is on the Splunk Univeral Forwarder.

The json file is created by a python script file that hits an API and returns the data (more on that later). The date field is the second date field in the json string. So Splunk was grabbing the first one and sometimes it was taking the file creation date and time.

After trying several different variations of the stanza the below code finally worked. I hope this helps you!

[source::/data/logs/prod.json]
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%3N
TIME_PREFIX="lastInformTime": "
MAX_TIMESTAMP_LOOKAHEAD = 24
MAX_DAYS_HENCE = 10

Here are some of the other answers I tried.

Looking for a standup desk for your home office

I recently decide to purchase a standup desk for my home office. I researched a couple of different brands but I decided to go with a Varidesk from Office Depot due to availabilty. Other desks would have taken months to be delivered and Office Depot had mine to me in 3 day’s.

VARIDESK ProDesk Electric Height-Adjustable Desk, 48"W, Reclaimed Wood

I have had it now for three weeks and couldn’t be happier with it. Setup was a breeze. No fumbling with a dozen different screws and trying to hold the pieces together. Just 4 screws to secure the legs to the top after they have been slid into place (in fact I didn’t even put the screws in till yesterday). The brace slide onto the legs with a wedge to hold it in place. They supply a nice rubber mallet to tap the brace into place and you can use it for computer repair later 🙂 . It’s a very solid piece of furniture. You can have preprogramed heights so at the touch of a button you are standing or sitting.

Groups in Outlook

In order to access your Contact Groups you must click on the people icon in the left hand navigation pane.

To create a new group click on the New Contact Group. This will create the group in your local contacts.
You can search from an existing group by searching in the contacts.
This will bring up your group and you can double click on it to modify it.
From here you can add or remove people from your group.
Make sure you select From Outlook contacts to get your local contacts list.

Interesting Read.

Modern SharePoint and Office 365 Development

I finished the Modern SharePoint and Office 365 Development course at Critical Path Training last week. Ted Pattison is a great teacher an I got a lot out of it. I would enthusiastically recommend Critical Path Training for your SharePoint and MS365 training.