<?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 to extract a value from the message using rex command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652190#M225428</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Dataframe row : {"_c0":{"0":"[","1":" {","2":" \"table_name\": \"pc_dwh_rdv.gdh_ls2lo_s99\"","3":" \"deleted_count\": 18","4":" \"redelivered_count\": 0","5":" \"load_date\": \"2023-07-27\"","6":" }","7":" {","8":" \"table_name\": \"pc_dwh_rdv.gdh_spar_s99\"","9":" \"deleted_count\": 8061","10":" \"redelivered_count\": 1","11":" \"load_date\": \"2023-07-27\"","12":" }","13":" {","14":" \"table_name\": \"pc_dwh_rdv.gdh_tf3tx_s99\"","15":" \"deleted_count\": 366619","16":" \"redelivered_count\": 0","17":" \"load_date\": \"2023-07-27\"","18":" }","19":" {","20":" \"table_name\": \"pc_dwh_rdv.gdh_wechsel_s99\"","21":" \"deleted_count\": 2","22":" \"redelivered_count\": 0","23":" \"load_date\": \"2023-07-27\"","24":" }","25":" {","26":" \"table_name\": \"pc_dwh_rdv.gdh_revolvingcreditcard_s99\"","27":" \"deleted_count\": 1285","28":" \"redelivered_count\": 0","29":" \"load_date\": \"2023-07-27\"","30":" }","31":" {","32":" \"table_name\": \"pc_dwh_rdv.gdh_phd_s99\"","33":" \"deleted_count\": 2484","34":" \"redelivered_count\": 204","35":" \"load_date\": \"2023-07-27\"","36":" }","37":" {","38":" \"table_name\": \"pc_dwh_rdv.gdh_npk_s99\"","39":" \"deleted_count\": 1705","40":" \"redelivered_count\": 0","41":" \"load_date\": \"2023-07-27\"","42":" }","43":" {","44":" \"table_name\": \"pc_dwh_rdv.gdh_npk_s98\"","45":" \"deleted_count\": 1517","46":" \"redelivered_count\": 0","47":" \"load_date\": \"2023-07-27\"","48":" }","49":" {","50":" \"table_name\": \"pc_dwh_rdv.gdh_kontokorrent_s99\"","51":" \"deleted_count\": 12998","52":" \"redelivered_count\": 0","53":" \"load_date\": \"2023-07-27\"","54":" }","55":" {","56":" \"table_name\": \"pc_dwh_rdv.gdh_gds_s99\"","57":" \"deleted_count\": 13","58":" \"redelivered_count\": 0","59":" \"load_date\": \"2023-07-27\"","60":" }","61":" {","62":" \"table_name\": \"pc_dwh_rdv.gdh_dszins_s99\"","63":" \"deleted_count\": 57","64":" \"redelivered_count\": 0","65":" \"load_date\": \"2023-07-27\"","66":" }","67":" {","68":" \"table_name\": \"pc_dwh_rdv_gdh_monat.gdh_phd_izr_monthly_s99\"","69":" \"deleted_count\": 1315","70":" \"redelivered_count\": 0","71":" \"load_date\": \"2023-07-27\"","72":" }","73":"]"}}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above is the sample message of an event which we have in splunk we want to extract the deleted count values like "1315", "57", "13" etc and add those values as a separate fields using rex command .&lt;BR /&gt;Also from the above message we want to extract load_date value such as 2023-07-27 and add that value as a separate field. Please help us in this.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2023 18:05:26 GMT</pubDate>
    <dc:creator>Renunaren</dc:creator>
    <dc:date>2023-07-31T18:05:26Z</dc:date>
    <item>
      <title>How to extract a value from the message using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652190#M225428</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Dataframe row : {"_c0":{"0":"[","1":" {","2":" \"table_name\": \"pc_dwh_rdv.gdh_ls2lo_s99\"","3":" \"deleted_count\": 18","4":" \"redelivered_count\": 0","5":" \"load_date\": \"2023-07-27\"","6":" }","7":" {","8":" \"table_name\": \"pc_dwh_rdv.gdh_spar_s99\"","9":" \"deleted_count\": 8061","10":" \"redelivered_count\": 1","11":" \"load_date\": \"2023-07-27\"","12":" }","13":" {","14":" \"table_name\": \"pc_dwh_rdv.gdh_tf3tx_s99\"","15":" \"deleted_count\": 366619","16":" \"redelivered_count\": 0","17":" \"load_date\": \"2023-07-27\"","18":" }","19":" {","20":" \"table_name\": \"pc_dwh_rdv.gdh_wechsel_s99\"","21":" \"deleted_count\": 2","22":" \"redelivered_count\": 0","23":" \"load_date\": \"2023-07-27\"","24":" }","25":" {","26":" \"table_name\": \"pc_dwh_rdv.gdh_revolvingcreditcard_s99\"","27":" \"deleted_count\": 1285","28":" \"redelivered_count\": 0","29":" \"load_date\": \"2023-07-27\"","30":" }","31":" {","32":" \"table_name\": \"pc_dwh_rdv.gdh_phd_s99\"","33":" \"deleted_count\": 2484","34":" \"redelivered_count\": 204","35":" \"load_date\": \"2023-07-27\"","36":" }","37":" {","38":" \"table_name\": \"pc_dwh_rdv.gdh_npk_s99\"","39":" \"deleted_count\": 1705","40":" \"redelivered_count\": 0","41":" \"load_date\": \"2023-07-27\"","42":" }","43":" {","44":" \"table_name\": \"pc_dwh_rdv.gdh_npk_s98\"","45":" \"deleted_count\": 1517","46":" \"redelivered_count\": 0","47":" \"load_date\": \"2023-07-27\"","48":" }","49":" {","50":" \"table_name\": \"pc_dwh_rdv.gdh_kontokorrent_s99\"","51":" \"deleted_count\": 12998","52":" \"redelivered_count\": 0","53":" \"load_date\": \"2023-07-27\"","54":" }","55":" {","56":" \"table_name\": \"pc_dwh_rdv.gdh_gds_s99\"","57":" \"deleted_count\": 13","58":" \"redelivered_count\": 0","59":" \"load_date\": \"2023-07-27\"","60":" }","61":" {","62":" \"table_name\": \"pc_dwh_rdv.gdh_dszins_s99\"","63":" \"deleted_count\": 57","64":" \"redelivered_count\": 0","65":" \"load_date\": \"2023-07-27\"","66":" }","67":" {","68":" \"table_name\": \"pc_dwh_rdv_gdh_monat.gdh_phd_izr_monthly_s99\"","69":" \"deleted_count\": 1315","70":" \"redelivered_count\": 0","71":" \"load_date\": \"2023-07-27\"","72":" }","73":"]"}}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above is the sample message of an event which we have in splunk we want to extract the deleted count values like "1315", "57", "13" etc and add those values as a separate fields using rex command .&lt;BR /&gt;Also from the above message we want to extract load_date value such as 2023-07-27 and add that value as a separate field. Please help us in this.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 18:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652190#M225428</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-07-31T18:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of a value from the message using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652193#M225430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253391"&gt;@Renunaren&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;this seems to be a json format so ypu could extract fields using INDEXED_EXTRACTIONS=json in props.conf os the spath command.&lt;/P&gt;&lt;P&gt;Anyway, if you want to use a regex, You can use these two regexes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "deleted_count\\\":\s+(?&amp;lt;deleted_count&amp;gt;\d+)"
| rex max_match=0 "load_date\\\":\s+\\\"(?&amp;lt;load_date&amp;gt;[^\\]+)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/w1XGFx/1" target="_blank"&gt;https://regex101.com/r/w1XGFx/1&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://regex101.com/r/w1XGFx/2" target="_blank"&gt;https://regex101.com/r/w1XGFx/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 10:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652193#M225430</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-27T10:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of a value from the message using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652496#M225522</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;Thanks for your response. We have tried using the mentioned REGEX commands but it hasn't worked here. In our environment we are not authorized to modify props.conf configuration files. Below are some of the snippets that will mention the result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renunaren_0-1690780774503.png" style="width: 725px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26533i7CB0AEF323C51E50/image-dimensions/725x299?v=v2" width="725" height="299" role="button" title="Renunaren_0-1690780774503.png" alt="Renunaren_0-1690780774503.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renunaren_1-1690781061633.png" style="width: 726px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26535i0E76E2AC9F482595/image-dimensions/726x182?v=v2" width="726" height="182" role="button" title="Renunaren_1-1690781061633.png" alt="Renunaren_1-1690781061633.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please look into this and help us on this.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 05:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652496#M225522</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-07-31T05:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of a value from the message using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652497#M225523</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253391"&gt;@Renunaren&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you try the "spath" command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.0/SearchReference/Spath)" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.0/SearchReference/Spath)&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;The problem wit backslashes sometimes is solved adding a fourth backslash.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 05:39:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652497#M225523</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-31T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of a value from the message using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652523#M225535</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;Thanks for your response. One of our team member has tried using the SPATH command. But he was unable to extract the required data, so we want to extract the data using rex command only. Please help us in this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 10:06:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652523#M225535</guid>
      <dc:creator>Renunaren</dc:creator>
      <dc:date>2023-07-31T10:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of a value from the message using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652524#M225536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253391"&gt;@Renunaren&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's strange that the spath comand doesn't run and the use of INDEXED_EXTRACTIONS at source level is always the best solution, anyway sometimes there's an issue on regexes with backslash, so please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "deleted_count\\\\":\s+(?&amp;lt;deleted_count&amp;gt;\d+)"
| rex max_match=0 "load_date\\\\":\s+\\\\"(?&amp;lt;load_date&amp;gt;[^\\]+)"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 10:27:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652524#M225536</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-31T10:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of a value from the message using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652673#M225564</link>
      <description>&lt;P&gt;This data format is indeed very intriguing. &amp;nbsp;Each of the JSON node represents a fragment of a quasi-JSON object. &amp;nbsp;You will have to first extract the compliant JSON, then reassemble the fragments. &amp;nbsp;But according to the sample data you posted, the reassembled string resembles JSON but is not compliant. &amp;nbsp;So, you fix syntax errors in the assembly. &amp;nbsp;Here is one way to achieve that. &amp;nbsp;But note: each message contains many values. &amp;nbsp;So I need to apply mvexpand to the reassembled JSON array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval message = replace(message, "Dataframe row : ", "")
| spath input=message
| foreach c0.*
    [eval assemble = mvappend(assemble, (printf("%04d", &amp;lt;&amp;lt;MATCHSTR&amp;gt;&amp;gt;) . "&amp;lt;&amp;gt;" . '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'))]
| fields - _ c0.*
| eval assemble = mvsort(assemble)
| eval message = ""
| foreach assemble mode=multivalue
    [eval message = message . "," . replace(&amp;lt;&amp;lt;ITEM&amp;gt;&amp;gt;, ".+&amp;lt;&amp;gt;", "")]
| rex field=message mode=sed "s/,\[,\s*/[/ s/{,/{/g s/,\s*}/}/g s/,]/]/"
| spath input=message path={}
| mvexpand {}
| spath input={}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, the reverse engineering is maddening. &amp;nbsp;If you have influence on developers who rendered these logs, beg them to use JSON array for c0 instead of subnodes c0.*; if c0.* subnodes must be used, name them in lexicographic order; also to add commas in the right places inside escaped quotes.&lt;/P&gt;&lt;P&gt;Anyway, your sample data would give&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;deleted_count&lt;/TD&gt;&lt;TD&gt;load_date&lt;/TD&gt;&lt;TD&gt;redelivered_count&lt;/TD&gt;&lt;TD&gt;table_name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_ls2lo_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8061&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_spar_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;366619&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_tf3tx_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_wechsel_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1285&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_revolvingcreditcard_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2484&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;204&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_phd_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1705&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_npk_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1517&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_npk_s98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12998&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_kontokorrent_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_gds_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;57&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv.gdh_dszins_s99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1315&lt;/TD&gt;&lt;TD&gt;2023-07-27&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;pc_dwh_rdv_gdh_monat.gdh_phd_izr_monthly_s99&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Here is a data emulation you can play with and compare with real data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval message = "Dataframe row : {\"_c0\":{\"0\":\"[\",\"1\":\" {\",\"2\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_ls2lo_s99\\\"\",\"3\":\" \\\"deleted_count\\\": 18\",\"4\":\" \\\"redelivered_count\\\": 0\",\"5\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"6\":\" }\",\"7\":\" {\",\"8\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_spar_s99\\\"\",\"9\":\" \\\"deleted_count\\\": 8061\",\"10\":\" \\\"redelivered_count\\\": 1\",\"11\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"12\":\" }\",\"13\":\" {\",\"14\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_tf3tx_s99\\\"\",\"15\":\" \\\"deleted_count\\\": 366619\",\"16\":\" \\\"redelivered_count\\\": 0\",\"17\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"18\":\" }\",\"19\":\" {\",\"20\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_wechsel_s99\\\"\",\"21\":\" \\\"deleted_count\\\": 2\",\"22\":\" \\\"redelivered_count\\\": 0\",\"23\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"24\":\" }\",\"25\":\" {\",\"26\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_revolvingcreditcard_s99\\\"\",\"27\":\" \\\"deleted_count\\\": 1285\",\"28\":\" \\\"redelivered_count\\\": 0\",\"29\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"30\":\" }\",\"31\":\" {\",\"32\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_phd_s99\\\"\",\"33\":\" \\\"deleted_count\\\": 2484\",\"34\":\" \\\"redelivered_count\\\": 204\",\"35\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"36\":\" }\",\"37\":\" {\",\"38\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_npk_s99\\\"\",\"39\":\" \\\"deleted_count\\\": 1705\",\"40\":\" \\\"redelivered_count\\\": 0\",\"41\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"42\":\" }\",\"43\":\" {\",\"44\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_npk_s98\\\"\",\"45\":\" \\\"deleted_count\\\": 1517\",\"46\":\" \\\"redelivered_count\\\": 0\",\"47\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"48\":\" }\",\"49\":\" {\",\"50\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_kontokorrent_s99\\\"\",\"51\":\" \\\"deleted_count\\\": 12998\",\"52\":\" \\\"redelivered_count\\\": 0\",\"53\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"54\":\" }\",\"55\":\" {\",\"56\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_gds_s99\\\"\",\"57\":\" \\\"deleted_count\\\": 13\",\"58\":\" \\\"redelivered_count\\\": 0\",\"59\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"60\":\" }\",\"61\":\" {\",\"62\":\" \\\"table_name\\\": \\\"pc_dwh_rdv.gdh_dszins_s99\\\"\",\"63\":\" \\\"deleted_count\\\": 57\",\"64\":\" \\\"redelivered_count\\\": 0\",\"65\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"66\":\" }\",\"67\":\" {\",\"68\":\" \\\"table_name\\\": \\\"pc_dwh_rdv_gdh_monat.gdh_phd_izr_monthly_s99\\\"\",\"69\":\" \\\"deleted_count\\\": 1315\",\"70\":\" \\\"redelivered_count\\\": 0\",\"71\":\" \\\"load_date\\\": \\\"2023-07-27\\\"\",\"72\":\" }\",\"73\":\"]\"}}"
``` data emulation above ```&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 08:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652673#M225564</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-08-01T08:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in extraction of a value from the message using rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652679#M225565</link>
      <description>&lt;P&gt;Let me interject here a bit.&lt;/P&gt;&lt;P&gt;Indexed extractions are _not_ always the best solution. Don't mistake indexed extractions with auto-kv. Indexed extractions are run during the indexing process and extract the fields permanently whereas auto-kv extract the fields in search-time.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 08:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652679#M225565</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-08-01T08:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a value from the message using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652682#M225566</link>
      <description>&lt;P&gt;As &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt; already said - this is a very strange piece of data. Something "json-like" containing a string which is again json-like.&lt;/P&gt;&lt;P&gt;1. Even if it was a proper json structure, the string field values are just strings. So you'd have to do multiple spath passes to parse it all properly.&lt;/P&gt;&lt;P&gt;2. Don't fiddle with regexes around structured data. You'll end up accounting for so many border cases that will make your head spin. It's not worth it.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 08:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-value-from-the-message-using-rex-command/m-p/652682#M225566</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-08-01T08:34:10Z</dc:date>
    </item>
  </channel>
</rss>

