<?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: how to get the string data as a json object for the below logstash logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461652#M79667</link>
    <description>&lt;P&gt;can u give an example ? i didn't get the exact way to do it. take the payload mentioned above in the question and help me in framing a query to get the value in the field "key" and provide stats based on the key name.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 09:51:13 GMT</pubDate>
    <dc:creator>d942725</dc:creator>
    <dc:date>2020-02-05T09:51:13Z</dc:date>
    <item>
      <title>how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461646#M79661</link>
      <description>&lt;P&gt;{ &lt;BR /&gt;
   @timestamp: 2020-02-04T13:46:41.274+00:00&lt;BR /&gt;
   domain: test&lt;BR /&gt;
   environment: dev&lt;BR /&gt;
   level: INFO&lt;BR /&gt;
   logger_name: com.test.practice.evthub.sse.impl.EventEncrypter&lt;BR /&gt;
   message: {"data":"6757", "key":"value"}&lt;BR /&gt;
   thread_name: main&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;For the above log, how to get the json inside the message field as a json object using spath. the output must be available to be reused for calculating stats. Finally i need to get the value available under the key. To get this task done first i need the json object to be created.&lt;/P&gt;

&lt;P&gt;Tried using "spath input=message output=key" but didn't work for me.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461646#M79661</guid>
      <dc:creator>d942725</dc:creator>
      <dc:date>2020-09-30T04:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461647#M79662</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Check this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval test="{ 
   \"@timestamp\":\"2020-02-04T13:46:41.274+00:00\",
   \"domain\":\"test\",
   \"environment\":\"dev\",
   \"level\":\"INFO\",
   \"logger_name\":\"com.test.practice.evthub.sse.impl.EventEncrypter\",
   \"message\":{ 
      \"data\":\"6757\",
      \"key\":\"value\"
       },
   \"thread_name\":\"main\"
    }" 
| spath input=test output=data path=message{}.data 
| spath input=test output=key path=message{}.key
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Feb 2020 17:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461647#M79662</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-02-04T17:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461648#M79663</link>
      <description>&lt;P&gt;@vnravikumar Has nailed it if your source json data is quoted properly.&lt;/P&gt;

&lt;P&gt;However in your question the quotes in the outer block are missing meaning the outer block is not valid json (please use the code formatter tool &lt;CODE&gt;101010&lt;/CODE&gt; to prevent splunk answers stripping out punctuation/special characters)&lt;/P&gt;

&lt;P&gt;In case your outer block is not valid (ie missing&lt;CODE&gt;"&lt;/CODE&gt;s) something like this could work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults |eval test="{
@timestamp: 2020-02-04T13:46:41.274+00:00
domain: test
environment: dev
level: INFO
logger_name: com.test.practice.evthub.sse.impl.EventEncrypter
message: {\"data\":\"6757\", \"key\":\"value\"}
thread_name: main
}"
|rex field=test "message: (?&amp;lt;message&amp;gt;\{[^\}]+\})"
|spath input=message
|table data key
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Feb 2020 17:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461648#M79663</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-04T17:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461649#M79664</link>
      <description>&lt;P&gt;Hi Thanks for ur reply.&lt;/P&gt;

&lt;P&gt;I shouldn't be giving entire json in the query. Is it possible to pass that json dynamically to the existing query ?&lt;/P&gt;

&lt;P&gt;I mean whatever u gave in &lt;STRONG&gt;eval test="{&lt;BR /&gt;
 @timestamp: 2020-02-04T13:46:41.274+00:00&lt;BR /&gt;
 domain: test&lt;BR /&gt;
 environment: dev&lt;BR /&gt;
 level: INFO&lt;BR /&gt;
 logger_name: com.test.practice.evthub.sse.impl.EventEncrypter&lt;BR /&gt;
 message: {\"data\":\"6757\", \"key\":\"value\"}&lt;BR /&gt;
 thread_name: main&lt;BR /&gt;
 }"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;so instead of giving the json, i must be able to get the data inside that message field as it is a streaming application and can't try it for a single json. Any suggestions ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461649#M79664</guid>
      <dc:creator>d942725</dc:creator>
      <dc:date>2020-09-30T04:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461650#M79665</link>
      <description>&lt;P&gt;Hi Thanks for ur reply.&lt;/P&gt;

&lt;P&gt;I shouldn't be giving entire json in the query. Is it possible to pass that json dynamically to the existing query ?&lt;/P&gt;

&lt;P&gt;I mean whatever u gave in &lt;STRONG&gt;eval test="{&lt;BR /&gt;
 @timestamp: 2020-02-04T13:46:41.274+00:00&lt;BR /&gt;
 domain: test&lt;BR /&gt;
 environment: dev&lt;BR /&gt;
 level: INFO&lt;BR /&gt;
 logger_name: com.test.practice.evthub.sse.impl.EventEncrypter&lt;BR /&gt;
 message: {\"data\":\"6757\", \"key\":\"value\"}&lt;BR /&gt;
 thread_name: main&lt;BR /&gt;
 }"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;so instead of giving the json, i must be able to get the data inside that message field as it is a streaming application and can't try it for a single json. Any suggestions ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:02:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461650#M79665</guid>
      <dc:creator>d942725</dc:creator>
      <dc:date>2020-09-30T04:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461651#M79666</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
If your json is in _raw then you can try &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourindex
 | spath output=data path=message{}.data 
 | spath output=key path=message{}.key
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Feb 2020 04:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461651#M79666</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-02-05T04:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461652#M79667</link>
      <description>&lt;P&gt;can u give an example ? i didn't get the exact way to do it. take the payload mentioned above in the question and help me in framing a query to get the value in the field "key" and provide stats based on the key name.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 09:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461652#M79667</guid>
      <dc:creator>d942725</dc:creator>
      <dc:date>2020-02-05T09:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461653#M79668</link>
      <description>&lt;P&gt;Can you post your actual event data - the whole event so we can see how its presented.&lt;BR /&gt;
Maybe a screenshot?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 09:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461653#M79668</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-05T09:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461654#M79669</link>
      <description>&lt;P&gt;yeah sure....&lt;/P&gt;

&lt;P&gt;{ [-]&lt;BR /&gt;
   @timestamp: 2020-02-05T09:41:19.486+00:00&lt;BR /&gt;
   domain: capem&lt;BR /&gt;
   environment: sit&lt;BR /&gt;
   level: INFO&lt;BR /&gt;
   logger_name: com.telstra.dna.evthub.sse.impl.EventEncrypter&lt;BR /&gt;
   message: {"data":{"errorDetails":[{"system":"OCS","responseCode":404,"request":{"url":"&lt;A href="https://slot4.org008.t-dev.telstra.net/application/ocsia/v1/ocs-provisioning/service/61474817171/products%22,%22body%22:%5B%22fb92a747-1cf7-09c8-33fc-0da0d0c16d80%22%5D%7D,%22response%22:%7B%22statusCode%22:404,%22error%22:%7B%22error%22:10004,%22message%22:%22Service" target="_blank"&gt;https://slot4.org008.t-dev.telstra.net/application/ocsia/v1/ocs-provisioning/service/61474817171/products","body":["fb92a747-1cf7-09c8-33fc-0da0d0c16d80"]},"response":{"statusCode":404,"error":{"error":10004,"message":"Service&lt;/A&gt; not found in OCS"}}}],"transactionDetails":{"id":"30d49584-76fe-4e9e-b7b4-0c3a819e432e","groupId":"6e2d25f3-6e77-90a2-689d-1e1476e79c8b","parentId":"fb92a747-1cf7-09c8-33fc-0da0d0c16d80","serviceId":"61474817171","downstreams":[{"name":"OCS","status":"FAILED","statusCode":404,"error":{"error":10004,"message":"Service not found in OCS"}}],"orderItemId":"5065705155871632216","actionStatus":"FAILED","dependencies":[],"chargingSpecId":"CS_SVCLSUB_001","chargingSpecType":"SERVICE_SUBSCRIPTION","productActionCode":"CEASE","productActionType":"cease","productInstanceId":"fb92a747-1cf7-09c8-33fc-0da0d0c16d80","chargingSpecSubType":"HANDSET_CONNECTION","customerAccountUuid":"6b1b147c-2b98-2489-cf92-cefab92a77cf","orderItemActionType":"Create","effectiveDate":"2020-02-05T09:40:14+00:00","sourceSystem":"B2C-Vlocity","orderId":"B20052034417634"}},"correlationId":"30d49584-76fe-4e9e-b7b4-0c3a819e432e","eventName":"WTC_SubscriptionLineItemCompletion_Failed","timestamp":"2020-02-05T09:40:14+00:00","eventPublisher":"WTC"}&lt;BR /&gt;
   thread_name: main&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;query in Use: domain="capem" environment="sit" logger_name="com.telstra.dna.evthub.sse.impl.EventEncrypter" message="&lt;EM&gt;Data =&lt;/EM&gt;"  message="&lt;EM&gt;" | rex field=_raw mode=sed "s/Data\s&lt;/EM&gt;=\s*//" | rex field=_raw mode=sed "s/,\sencrypted\susing\sEvent\sHub\skey\s=\sarn:aws:kms:ap-southeast-2:162316815215:key\/15225d7b-f71a-4c3d-bd84-24c5043c368e*//"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461654#M79669</guid>
      <dc:creator>d942725</dc:creator>
      <dc:date>2020-09-30T04:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461655#M79670</link>
      <description>&lt;P&gt;Ok, so your example data is very different from what you really have,&lt;/P&gt;

&lt;P&gt;just add &lt;CODE&gt;|spath input=message&lt;/CODE&gt; and it should extract the contents of the message block for you.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 10:54:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461655#M79670</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-05T10:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461656#M79671</link>
      <description>&lt;P&gt;tried that as well, but was not able to extract the attributes&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 10:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461656#M79671</guid>
      <dc:creator>d942725</dc:creator>
      <dc:date>2020-02-05T10:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461657#M79672</link>
      <description>&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[encrypter_json]
SEDCMD-trim = s/(?s){.*?(\{.*}).*}/\1/g
KV_MODE=JSON
JSON_TRIM_BRACES_IN_ARRAY_NAMES = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Mar 2020 04:45:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461657#M79672</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-01T04:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461658#M79673</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; domain="capem" environment="sit" logger_name="com.test.dna.evthub.sse.impl.EventEncrypter" message="Data =" message="" index="" index="amp-dnaeventhub" 
| rex "message: (?&amp;lt;message&amp;gt;{.*})" 
| spath input=message   path=eventName  
| table eventName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/SearchReference/Spath"&gt;spath @ Splunk&amp;gt;docs&lt;/A&gt;&lt;BR /&gt;
your first sample is not valid JSON. so &lt;CODE&gt;spath&lt;/CODE&gt; is not work.&lt;BR /&gt;
My query extracts valid JSON from &lt;EM&gt;message&lt;/EM&gt;. so &lt;CODE&gt;spath&lt;/CODE&gt; is work.&lt;/P&gt;

&lt;P&gt;look like &lt;CODE&gt;_raw&lt;/CODE&gt; is normal. maybe works.&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="{
@timestamp: 2020-02-05T09:41:19.486+00:00
domain: capem
environment: sit
level: INFO
logger_name: com.test.dna.evthub.sse.impl.EventEncrypter
message: {\"data\":{\"errorDetails\":[{\"system\":\"OCS\",\"responseCode\":404,\"request\":{\"url\":\"https://slot4.org008.t-dev.test.net/application/ocsia/v1/ocs-provisioning/service/61474817171/products\",\"body\":[\"fb92a747-1cf7-09c8-33fc-0da0d0c16d80\"]},\"response\":{\"statusCode\":404,\"error\":{\"error\":10004,\"message\":\"Service not found in OCS\"}}}],\"transactionDetails\":{\"id\":\"30d49584-76fe-4e9e-b7b4-0c3a819e432e\",\"groupId\":\"6e2d25f3-6e77-90a2-689d-1e1476e79c8b\",\"parentId\":\"fb92a747-1cf7-09c8-33fc-0da0d0c16d80\",\"serviceId\":\"61474817171\",\"downstreams\":[{\"name\":\"OCS\",\"status\":\"FAILED\",\"statusCode\":404,\"error\":{\"error\":10004,\"message\":\"Service not found in OCS\"}}],\"orderItemId\":\"5065705155871632216\",\"actionStatus\":\"FAILED\",\"dependencies\":[],\"chargingSpecId\":\"CS_SVCLSUB_001\",\"chargingSpecType\":\"SERVICE_SUBSCRIPTION\",\"productActionCode\":\"CEASE\",\"productActionType\":\"cease\",\"productInstanceId\":\"fb92a747-1cf7-09c8-33fc-0da0d0c16d80\",\"chargingSpecSubType\":\"HANDSET_CONNECTION\",\"customerAccountUuid\":\"6b1b147c-2b98-2489-cf92-cefab92a77cf\",\"orderItemActionType\":\"Create\",\"effectiveDate\":\"2020-02-05T09:40:14+00:00\",\"sourceSystem\":\"B2C-Vlocity\",\"orderId\":\"B20052034417634\"}},\"correlationId\":\"30d49584-76fe-4e9e-b7b4-0c3a819e432e\",\"eventName\":\"WTC_SubscriptionLineItemCompletion_Failed\",\"timestamp\":\"2020-02-05T09:40:14+00:00\",\"eventPublisher\":\"WTC\"}
thread_name: main
}" 
| rex "message: (?&amp;lt;message&amp;gt;{.*})" 
| spath input=message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H2&gt;what's &lt;STRONG&gt;data&lt;/STRONG&gt; and &lt;STRONG&gt;key&lt;/STRONG&gt;?&lt;/H2&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(?P&amp;lt;key&amp;gt;(?&amp;lt;=key\":\").*(?=\"))"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hi, how about this?&lt;BR /&gt;
&lt;CODE&gt;spath&lt;/CODE&gt; is not useful for you.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 04:45:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461658#M79673</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-01T04:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461659#M79674</link>
      <description>&lt;P&gt;Hi tried this, but it is not returning anything. Atleast i must be able to see this key field being available in the splunk UI "Interesting fields" section so that i can use that field to show the stats in the dashboard.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 04:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461659#M79674</guid>
      <dc:creator>d942725</dc:creator>
      <dc:date>2020-03-01T04:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461660#M79675</link>
      <description>&lt;P&gt;I think you need to give us some real example data, your sample above is obviously not representative of what it really looks like,&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 04:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461660#M79675</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-03-01T04:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the string data as a json object for the below logstash logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461661#M79676</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Query in use:&lt;/STRONG&gt;  domain="capem" environment="sit" logger_name="com.final.dna.evthub.sse.impl.EventEncrypter" message="&lt;EM&gt;Data =&lt;/EM&gt;"  message="&lt;EM&gt;"  index="&lt;/EM&gt;"  index="amp-dnaeventhub" | rex field=_raw mode=sed "s/Data\s*=\s*//" | rex field=_raw mode=sed "s/,\sencrypted\susing\sEvent\sHub\skey\s=\sarn:aws:kms:ap-southeast-2:162316815215:key\/15225d7b-f71a-4c3d-bd84-24c5043c368e*//" &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;BR /&gt;
{ [-]&lt;BR /&gt;
   @timestamp: 2020-02-05T09:41:19.486+00:00&lt;BR /&gt;
   domain: capem&lt;BR /&gt;
   environment: sit&lt;BR /&gt;
   level: INFO&lt;BR /&gt;
   logger_name: com.final.dna.evthub.sse.impl.EventEncrypter&lt;BR /&gt;
   message: {"data":{"errorDetails":[{"system":"OCS","responseCode":404,"request":{"url":"&lt;A href="https://slot4.org008.t-dev.final.net/application/ocsia/v1/ocs-provisioning/service/61474817171/products%22,%22body%22:%5B%22fb92a747-1cf7-09c8-33fc-0da0d0c16d80%22%5D%7D,%22response%22:%7B%22statusCode%22:404,%22error%22:%7B%22error%22:10004,%22message%22:%22Service" target="_blank"&gt;https://slot4.org008.t-dev.final.net/application/ocsia/v1/ocs-provisioning/service/61474817171/products","body":["fb92a747-1cf7-09c8-33fc-0da0d0c16d80"]},"response":{"statusCode":404,"error":{"error":10004,"message":"Service&lt;/A&gt; not found in OCS"}}}],"transactionDetails":{"id":"30d49584-76fe-4e9e-b7b4-0c3a819e432e","groupId":"6e2d25f3-6e77-90a2-689d-1e1476e79c8b","parentId":"fb92a747-1cf7-09c8-33fc-0da0d0c16d80","serviceId":"61474817171","downstreams":[{"name":"OCS","status":"FAILED","statusCode":404,"error":{"error":10004,"message":"Service not found in OCS"}}],"orderItemId":"5065705155871632216","actionStatus":"FAILED","dependencies":[],"chargingSpecId":"CS_SVCLSUB_001","chargingSpecType":"SERVICE_SUBSCRIPTION","productActionCode":"CEASE","productActionType":"cease","productInstanceId":"fb92a747-1cf7-09c8-33fc-0da0d0c16d80","chargingSpecSubType":"HANDSET_CONNECTION","customerAccountUuid":"6b1b147c-2b98-2489-cf92-cefab92a77cf","orderItemActionType":"Create","effectiveDate":"2020-02-05T09:40:14+00:00","sourceSystem":"B2C-Vlocity","orderId":"B20052034417634"}},"correlationId":"30d49584-76fe-4e9e-b7b4-0c3a819e432e","eventName":"WTC_SubscriptionLineItemCompletion_Failed","timestamp":"2020-02-05T09:40:14+00:00","eventPublisher":"WTC"}&lt;BR /&gt;
   thread_name: main&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-the-string-data-as-a-json-object-for-the-below/m-p/461661#M79676</guid>
      <dc:creator>d942725</dc:creator>
      <dc:date>2020-09-30T04:02:38Z</dc:date>
    </item>
  </channel>
</rss>

