<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Json data issues with timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469225#M80730</link>
    <description>&lt;P&gt;![Here's what I used along with a screenshot of the results. You can see the timestamp highlighted in red, and all the fields are there.&lt;BR /&gt;
Are you doing this on a distributed environment?&lt;/P&gt;

&lt;P&gt;[jason_test]&lt;BR /&gt;
DATETIME_CONFIG =&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
TIME_FORMAT = %s.%5N&lt;BR /&gt;
TIME_PREFIX = created_at": "&lt;BR /&gt;
category = Custom&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
INDEXED_EXTRACTIONS = JSON]&lt;A href="https://community.splunk.com/storage/temp/276814-jason-2.png" target="_blank"&gt;1&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:25:55 GMT</pubDate>
    <dc:creator>oscar84x</dc:creator>
    <dc:date>2020-09-30T03:25:55Z</dc:date>
    <item>
      <title>Json data issues with timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469222#M80727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm using python scripts to get data into splunk.&lt;BR /&gt;
They are getting data in JSon format. Here an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"urgency": "Medium", "first_authenticated_response_at": null, "created_at": "1546463747.48092", "ticket": "rrrrrrrrr", "pending_closure_at": "1546617654.71499", "customer": "ssssssss", "state": "Closed", "last_update_at": "1547224812.31054", "created_by": "aaaaaa", "impact": "Service Degraded", "configuration_item": ["ddddddd", "fffffffff"], "time_spent": "840", "priority": "ttttttttt", "authenticated_at": "1546463747", "publication_type": "Internal", "first_response_at": "1546617654.77845", "closed_at": "1547224812.01911", "cti_item": "Degraded Performance", "initial_team": "yyyyyyyyyyyyy"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, the data fields are in epoch time. I would like for Splunk, to use the created_at field as the main filed and get the moment from it. Right now, when I'm indexing data from January, for example, it indexes it with the current time.&lt;/P&gt;

&lt;P&gt;This is the configuration I have in the "props.conf":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tickets_test]
DATETIME_CONFIG = NONE
INDEXED_EXTRACTIONS = json
NO_BINARY_CHECK = true
category = Custom
pulldown_type = 1
TIMESTAMP_FIELDS = "created_at"
disabled = false
TIME_FORMAT = %s.%6N
TIME_PREFIX = "created_at":
sourcetype =  tickets_test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea what I could change to get that data indexed recognizing it's from January?&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 14:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469222#M80727</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2019-12-23T14:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Json data issues with timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469223#M80728</link>
      <description>&lt;P&gt;Hi. You seem to mostly have the right settings except for the width of subseconds. The time you want to use only has 5 digits for subseconds, you're using 6 which is probably why it's not recognizing the pattern. Also make sure your lookahead is at least 100.&lt;/P&gt;

&lt;P&gt;EDIT: I also just noticed that your time prefix doesn't include the space and the double quote after the colon which is probably another reason why your current settings weren't locating the timestamp.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%s.%5N
TIME_PREFIX="created_at": "
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Dec 2019 15:03:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469223#M80728</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-23T15:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Json data issues with timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469224#M80729</link>
      <description>&lt;P&gt;Still not working.&lt;/P&gt;

&lt;P&gt;I have realized that the field disappears when I add from the web and save the changes, and it's not there if I add it through the server file directly.&lt;/P&gt;

&lt;P&gt;Now the file props.conf is showing this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tickets_test]
DATETIME_CONFIG =
INDEXED_EXTRACTIONS = json
NO_BINARY_CHECK = true
category = Custom
pulldown_type = 1
TIMESTAMP_FIELDS = created_at
disabled = false
TIME_FORMAT = %s.%5N
TIME_PREFIX = "created_at": "
MAX_TIMESTAMP_LOOKAHEAD = 500
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is anything else wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 15:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469224#M80729</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2019-12-23T15:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Json data issues with timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469225#M80730</link>
      <description>&lt;P&gt;![Here's what I used along with a screenshot of the results. You can see the timestamp highlighted in red, and all the fields are there.&lt;BR /&gt;
Are you doing this on a distributed environment?&lt;/P&gt;

&lt;P&gt;[jason_test]&lt;BR /&gt;
DATETIME_CONFIG =&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
TIME_FORMAT = %s.%5N&lt;BR /&gt;
TIME_PREFIX = created_at": "&lt;BR /&gt;
category = Custom&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
INDEXED_EXTRACTIONS = JSON]&lt;A href="https://community.splunk.com/storage/temp/276814-jason-2.png" target="_blank"&gt;1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469225#M80730</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2020-09-30T03:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Json data issues with timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469226#M80731</link>
      <description>&lt;P&gt;Sorry, I was trying to upload a screenshot and didn't do it right.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469226#M80731</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-23T16:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Json data issues with timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469227#M80732</link>
      <description>&lt;P&gt;Non- distributed environment. I have changed the things we had different and now it works! &lt;BR /&gt;
It is recognizing the events for the 1st of October.&lt;/P&gt;

&lt;P&gt;Thanks a lot! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 08:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469227#M80732</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2019-12-24T08:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Json data issues with timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469228#M80733</link>
      <description>&lt;P&gt;Great! Glad to help.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 14:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/469228#M80733</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-24T14:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Json data issues with timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/507343#M86338</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/109006"&gt;@oscar84x&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;My timestamp in data looks like:&amp;nbsp;&lt;SPAN class="field-val"&gt;2020-07-02T18:00:18+02:00 with name last_modified_date which i want to be extracted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i have written below props.conf:&lt;/P&gt;&lt;P&gt;[_json]&lt;BR /&gt;INDEXED_EXTRACTIONS = json&lt;BR /&gt;KV_MODE = none&lt;BR /&gt;AUTO_KV_JSON = false&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;TIMESTAMP_FIELDS = last_modified_date&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S+%2N:%2N&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD = 25&lt;/P&gt;&lt;P&gt;and getting time extracted as :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;7/2/20&lt;BR /&gt;6:00:18.020 PM&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;but I want the time field extracted in same way as in data with + value as well like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;7/2/20&lt;BR /&gt;6:00:18+02:00 PM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please let me know what i am doing wrong as i am not getting expected output with + value.&lt;/P&gt;&lt;P&gt;Note： this +02：00 value is fixed with every timestamp in data .&lt;/P&gt;&lt;P&gt;Here’s my sample log data：&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"_timestamp":"2020-07-02 18:00:46","_ver":"2","asset_&lt;/SPAN&gt;&lt;SPAN&gt;name":"","assigned_group":"&lt;/SPAN&gt;&lt;SPAN&gt;Troubleshooting - Tier 2","assignee":"Buhle Mahlaba","ci":"","cause":"","&lt;/SPAN&gt;&lt;SPAN&gt;city":"","client_type":"","&lt;/SPAN&gt;&lt;SPAN&gt;closed_date":"","closure_&lt;/SPAN&gt;&lt;SPAN&gt;source":"","company":"MTN BUSINESS","contact_phone":"","&lt;/SPAN&gt;&lt;SPAN&gt;contact_site":"","country":"",&lt;/SPAN&gt;&lt;SPAN&gt;"created_from_template":"","&lt;/SPAN&gt;&lt;SPAN&gt;customer_phone":"###","&lt;/SPAN&gt;&lt;SPAN&gt;customer_site":"INTERNET SOLUTIONS(PTY) LTD","debtor_code":"MTN000","&lt;/SPAN&gt;&lt;SPAN&gt;direct_contact_city":"","&lt;/SPAN&gt;&lt;SPAN&gt;direct_contact_company":"","&lt;/SPAN&gt;&lt;SPAN&gt;direct_contact_corporate_id":"&lt;/SPAN&gt;&lt;SPAN&gt;","direct_contact_country":"",&lt;/SPAN&gt;&lt;SPAN&gt;"direct_contact_country_code":&lt;/SPAN&gt;&lt;SPAN&gt;"","direct_contact_department"&lt;/SPAN&gt;&lt;SPAN&gt;:"","direct_contact_desk_&lt;/SPAN&gt;&lt;SPAN&gt;location":"","direct_contact_&lt;/SPAN&gt;&lt;SPAN&gt;extension":"","direct_contact_&lt;/SPAN&gt;&lt;SPAN&gt;first_name":"","direct_&lt;/SPAN&gt;&lt;SPAN&gt;contact_internet_email":"","&lt;/SPAN&gt;&lt;SPAN&gt;direct_contact_last_name":"","&lt;/SPAN&gt;&lt;SPAN&gt;direct_contact_local_number":"&lt;/SPAN&gt;&lt;SPAN&gt;","direct_contact_location_&lt;/SPAN&gt;&lt;SPAN&gt;details":"","direct_contact_&lt;/SPAN&gt;&lt;SPAN&gt;middle_initial":"","direct_&lt;/SPAN&gt;&lt;SPAN&gt;contact_organization":"","&lt;/SPAN&gt;&lt;SPAN&gt;direct_contact_region":"","&lt;/SPAN&gt;&lt;SPAN&gt;direct_contact_site_group":"",&lt;/SPAN&gt;&lt;SPAN&gt;"direct_contact_state_&lt;/SPAN&gt;&lt;SPAN&gt;province":"","direct_contact_&lt;/SPAN&gt;&lt;SPAN&gt;street":"","direct_contact_&lt;/SPAN&gt;&lt;SPAN&gt;time_zone":"","direct_contact_&lt;/SPAN&gt;&lt;SPAN&gt;zip_postal_code":"","first_&lt;/SPAN&gt;&lt;SPAN&gt;name":"Melvern","impact":"2-&lt;/SPAN&gt;&lt;SPAN&gt;Significant\/Large","incident_&lt;/SPAN&gt;&lt;SPAN&gt;id":"MTNB00001289400","&lt;/SPAN&gt;&lt;SPAN&gt;incident_type":"User Service Restoration","last_&lt;/SPAN&gt;&lt;SPAN&gt;acknowledged_date":"","last_&lt;/SPAN&gt;&lt;SPAN&gt;modified_by":"412877","last_&lt;/SPAN&gt;&lt;SPAN&gt;modified_date":"2020-07-02T18:&lt;/SPAN&gt;&lt;SPAN&gt;00:44+02:00","last_name":"&lt;/SPAN&gt;&lt;SPAN&gt;Banoo","last_resolved_date":""&lt;/SPAN&gt;&lt;SPAN&gt;,"middle_name":"","notes":"HI Team\n\nThe mentioned link is down ,Please investigate and advise.\n\n\nRP\/0\/RSP0\/&lt;/SPAN&gt;&lt;SPAN&gt;CPU0:mi-za-bry-mspe4#sho log | inc BVI906\nRP\/0\/RSP0\/CPU0:Jul&amp;nbsp; 2 14:43:49.894 SAST: mpls_ldp[1204]: %ROUTING-LDP-5-HELLO_ADJ_&lt;/SPAN&gt;&lt;SPAN&gt;CHANGE : VRF 'default' (0x60000000), Link hello adja...","operational_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_1":"TES_&lt;/SPAN&gt;&lt;SPAN&gt;Link","operational_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_2":"&lt;/SPAN&gt;&lt;SPAN&gt;Microwave PTP","operational_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_3":"Link Down","owner_group":"General Support","priority":"Critical"&lt;/SPAN&gt;&lt;SPAN&gt;,"product_categorization_tier_&lt;/SPAN&gt;&lt;SPAN&gt;1":"TES_Managed Networks","product_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_2":"Access Service","product_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_3":"Cloud Connect","product_name":"","&lt;/SPAN&gt;&lt;SPAN&gt;region":"","reported_date":"&lt;/SPAN&gt;&lt;SPAN&gt;2020-07-02T16:36:04+02:00","&lt;/SPAN&gt;&lt;SPAN&gt;reported_source":"Email","&lt;/SPAN&gt;&lt;SPAN&gt;resolution":"","resolution_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_1":"","&lt;/SPAN&gt;&lt;SPAN&gt;resolution_categorization_&lt;/SPAN&gt;&lt;SPAN&gt;tier_2":"","resolution_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_3":"","&lt;/SPAN&gt;&lt;SPAN&gt;resolution_product_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_1":"","&lt;/SPAN&gt;&lt;SPAN&gt;resolution_product_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_2":"","&lt;/SPAN&gt;&lt;SPAN&gt;resolution_product_&lt;/SPAN&gt;&lt;SPAN&gt;categorization_tier_3":"","&lt;/SPAN&gt;&lt;SPAN&gt;responded_date":"2020-07-&lt;/SPAN&gt;&lt;SPAN&gt;02T18:00:43+02:00","slm_real_&lt;/SPAN&gt;&lt;SPAN&gt;time_status":"Within the Service Target","satisfaction_rating":&lt;/SPAN&gt;&lt;SPAN&gt;"","service_manager":"","&lt;/SPAN&gt;&lt;SPAN&gt;service_request_id":"","site_&lt;/SPAN&gt;&lt;SPAN&gt;group":"","state_province":"",&lt;/SPAN&gt;&lt;SPAN&gt;"status":"In Progress","status_reason_&lt;/SPAN&gt;&lt;SPAN&gt;hidden":"","street":"","&lt;/SPAN&gt;&lt;SPAN&gt;submit_date":"2020-07-02T16:&lt;/SPAN&gt;&lt;SPAN&gt;36:04+02:00","submitter":"AR_&lt;/SPAN&gt;&lt;SPAN&gt;ESCALATOR","summary":"&lt;/SPAN&gt;&lt;SPAN&gt;INC000147465| me-za-gp80-hoedspru-bry-1 | | E2379","time_zone":"","&lt;/SPAN&gt;&lt;SPAN&gt;urgency":"1-Critical","vendor_&lt;/SPAN&gt;&lt;SPAN&gt;group":"","vendor_name":"","&lt;/SPAN&gt;&lt;SPAN&gt;vendor_ticket_number":"","zip_&lt;/SPAN&gt;&lt;SPAN&gt;postal_code":""}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jul 2020 15:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-data-issues-with-timestamp/m-p/507343#M86338</guid>
      <dc:creator>abhinav_bel</dc:creator>
      <dc:date>2020-07-04T15:20:31Z</dc:date>
    </item>
  </channel>
</rss>

