<?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 How do I extract all fields from userdata? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/595948#M207443</link>
    <description>&lt;P&gt;How do I extract all fields from userdata?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; accept=application/json, timestamp=1651243086870} OutboundWebHookPayload={"clientType":"Client","mediaType":"ask","subject":"EscapeClient","userData":{"country":"UK","lastName":"ELMER","agentId":"7060856","conversationId":"conv_1d55ec01e970c8833e8b8206be287fce","sessionId":"itc_58f7ad65-fcb0-46bd-81-1717f84dd7","chatSessionId":"s_eaf99b35-59fd-4d36-8f8f-c6423f8ec610","locale":"en-GB","languageCode":"en","experience":"Default","publicGuid":"1d55ec01e970c8833e8b8206be287fce","accountNumber":"XXXXXXXXXXXXXXX","firstName":"LUKE","environment":"prod","intentCode":"statement_balance","upfrontRoutingIntent":"CardServices","InteractionType":"Resume","customerId":"508558871407","channelName":"MApp","ProductType":" Card"}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;userData | rex field=_raw "userData.:{.IACode.:.(?&amp;lt;IACode&amp;gt;[A-Za-f0-9]+).,.country.*upfrontRoutingIntent.:.(?&amp;lt;upfrontRoutingIntent&amp;gt;[^\"]+).," | table IACode upfrontRoutingIntent&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I need other fields like Experience and Product type as well&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 18:57:34 GMT</pubDate>
    <dc:creator>siksaw33</dc:creator>
    <dc:date>2022-04-29T18:57:34Z</dc:date>
    <item>
      <title>How do I extract all fields from userdata?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/595948#M207443</link>
      <description>&lt;P&gt;How do I extract all fields from userdata?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; accept=application/json, timestamp=1651243086870} OutboundWebHookPayload={"clientType":"Client","mediaType":"ask","subject":"EscapeClient","userData":{"country":"UK","lastName":"ELMER","agentId":"7060856","conversationId":"conv_1d55ec01e970c8833e8b8206be287fce","sessionId":"itc_58f7ad65-fcb0-46bd-81-1717f84dd7","chatSessionId":"s_eaf99b35-59fd-4d36-8f8f-c6423f8ec610","locale":"en-GB","languageCode":"en","experience":"Default","publicGuid":"1d55ec01e970c8833e8b8206be287fce","accountNumber":"XXXXXXXXXXXXXXX","firstName":"LUKE","environment":"prod","intentCode":"statement_balance","upfrontRoutingIntent":"CardServices","InteractionType":"Resume","customerId":"508558871407","channelName":"MApp","ProductType":" Card"}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;userData | rex field=_raw "userData.:{.IACode.:.(?&amp;lt;IACode&amp;gt;[A-Za-f0-9]+).,.country.*upfrontRoutingIntent.:.(?&amp;lt;upfrontRoutingIntent&amp;gt;[^\"]+).," | table IACode upfrontRoutingIntent&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I need other fields like Experience and Product type as well&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 18:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/595948#M207443</guid>
      <dc:creator>siksaw33</dc:creator>
      <dc:date>2022-04-29T18:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/595954#M207446</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "OutboundWebHookPayload=(?&amp;lt;json&amp;gt;\{.*\})"
| spath input=json userData output=userData
| spath input=userData&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:30:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/595954#M207446</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-29T15:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/595998#M207472</link>
      <description>&lt;P&gt;Sorry &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; this did not work. Maybe I am doing something wrong. But this is not converting and&amp;nbsp; returning the userdata package to a table format.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;userData | rex "OutboundWebHookPayload=(?&amp;lt;json&amp;gt;\{.*\})"&lt;BR /&gt;| spath input=json userData output=userData&lt;BR /&gt;| spath input=userData&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 20:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/595998#M207472</guid>
      <dc:creator>siksaw33</dc:creator>
      <dc:date>2022-04-29T20:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596073#M207499</link>
      <description>&lt;P&gt;OK So what are you getting?&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2022 18:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596073#M207499</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-01T18:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596074#M207500</link>
      <description>&lt;P&gt;Nothing &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I just get the events that I was getting earlier. No regex parsing. Could you please double check?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2022 18:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596074#M207500</guid>
      <dc:creator>siksaw33</dc:creator>
      <dc:date>2022-05-01T18:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Regex to extract fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596078#M207501</link>
      <description>&lt;P&gt;Does this at least return the json string?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "OutboundWebHookPayload=(?&amp;lt;json&amp;gt;\{.*\})"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 01 May 2022 19:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596078#M207501</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-01T19:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract all fields from userdata?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596187#M207539</link>
      <description>&lt;P&gt;I dont get anyJSON string, I&amp;nbsp; get what I was getting earlier. No changes. I get 1500 events in the below format.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 14:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596187#M207539</guid>
      <dc:creator>siksaw33</dc:creator>
      <dc:date>2022-05-27T14:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract all fields from userdata?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596198#M207544</link>
      <description>&lt;P&gt;Here is a runanywhere example showing the extraction&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="02 May 2022 11:20:42,825 log_level='DEBUG' thread_name='https-jsse-nio-8443-exec-2999' environment=e3_ipc1 hostName=operator-a-deployment-42-kn9ph class_name='com.wsgcat.ngsp.logan.logger.LoganOperatorOutboundWebhookLogging' app=NGSPLOGAN event_name=LOGANOPERATOR logancorrelationId=fZFtvmmb-02052022-112040911 channel name=bean 'createRequestWithHeaderChannel' LoganOperatorOutboundWebhookLogging Info - OutboundWebHookHeaders={Authorization=Bearer eyJraWQiOiJyc2FLZXlVTklWIiwiYWxnIjoiUlM1MTIifQ.eyJzY3AiOlsiZnVuY3Rpb246XC9DcmVhdGVNZXNzYWdpbmdJbnRlcmFjdGlvbi52MSJdLCJzdWIiOiIzNWIyODNjNi01NTBhLTNiNTctYmZiMC1iY2I1N2Y3ZDRlYzEiLCJ2ZXIiOiIxLjAiLCJpc3MiOiJBbWV4SURhYVNJRCIsInR5cCI6ImFwcCIsImV4cCI6MTY1MTUxNTk2MCwianRpIjoiMjcyNjZmOTMtMTAzZi00M2FkLWE2ZDQtM2M2OGExNmVjNmFkIn0.X2HAnLvITD9ri/YVbyxCQyJcYjDmThYWOkHgz5yW3OaSmvAIscZA3O7tE6uE1c6aUyjOS+O3Qw6lHpSSG7D+5tp6whJb3Qa7eqiBY0hP4+iI8GYiRPXb2vZbFKLDPYQ4eVOPPJ0lZ3wh1Poqy5s+duZmVH7mx4rXwc+i6TL7S80OiI6LajCfuLE4swnq2n+zfFF2mWzK8DAr93vOlUkRB5eHWleGAYsng7bbC+KdDMqo06aZJDnfa2R/dxRdrhBwZrKMaWAqOLMrjmjgDrj2dMo0/UKsXKHdM83BIlPKCn+gJWjHG3D0ZEXwljrGTgm9YMBG8ZON4ieE05JPbsiI0w==, replyChannel=org.springframework.messaging.core.Template$TemporaryReplyChannel@6365782d, errorChannel=org.springframework.messaging.core.Template$TemporaryReplyChannel@6365782d, one-correlation-id=conv_cb44295ae5e9870f28ee1-02022-1121911, id=8997e7f6-59fa-ba5a-206c-0e7bfbf149c8, Content-Type=application/json, accept=application/json, timestamp=1651515642824} OutboundWebHookPayload={\"clientType\":\"Client\",\"mediaType\":\"ask\",\"subject\":\"AskEscapeClient\",\"userData\":{\"country\":\"US\",\"lastName\":\"DURFEE\",\"agentId\":\"6438\",\"conversationId\":\"conv_cb442617aae5e9870f28ee1\",\"sessionId\":\"itc_830e-bc73-a25aa95c6136\",\"chSessionId\":\"s_7c33b596- -816d21874c5e\",\"locale\":\"en-US\",\"languageCode\":\"en\",\"experience\":\"Pl\",\"publicGuid\":\"cb44295c401145617aae5e9870f28ee1\",\"accountNumber\":\"XXXXXXXXXXXXXXX\",\"firstName\":\"JO\",\"environment\":\"prod\",\"intentCode\":\"travel\",\"upfrontRoutingIntent\":\" travel\",\"InteractionType\":\"Resume\",\"customerId\":\"284745861019\",\"channelName\":\"MA\",\"ProductType\":\"Pla\"}}"
| rex "OutboundWebHookPayload=(?&amp;lt;json&amp;gt;\{.*\})"
| spath input=json userData output=userData
| spath input=userData&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 May 2022 22:12:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596198#M207544</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-02T22:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract all fields from userdata?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596385#M207617</link>
      <description>&lt;P&gt;ahh.. n00b mistake by me. &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; you are correct. This worked, you are the best. Thanks a ton!&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 13:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-all-fields-from-userdata/m-p/596385#M207617</guid>
      <dc:creator>siksaw33</dc:creator>
      <dc:date>2022-05-04T13:35:18Z</dc:date>
    </item>
  </channel>
</rss>

