<?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: need help on REX command in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693434#M12525</link>
    <description>&lt;P&gt;Not working&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_0-1721111240746.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31777i31291696895ED55B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1721111240746.png" alt="bhaskar5428_0-1721111240746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 06:27:28 GMT</pubDate>
    <dc:creator>bhaskar5428</dc:creator>
    <dc:date>2024-07-16T06:27:28Z</dc:date>
    <item>
      <title>need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693428#M12520</link>
      <description>&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="bhaskar5428_0-1721109679194.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31776iD54885C240441D29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1721109679194.png" alt="bhaskar5428_0-1721109679194.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi team , from above screenshot can you suggest how can i extract SEP013 against&amp;nbsp;&lt;SPAN&gt;"errorCode":&lt;BR /&gt;I need count of events for SEP013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note : am planning to put dedup on order id , so i will get correct count&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693428#M12520</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-16T06:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693429#M12521</link>
      <description>&lt;P&gt;adding command which i have tried but not working , need help correct rex patternt&lt;BR /&gt;&lt;BR /&gt;index = app_events_sdda_core_de_prod source="/home/sdda/apps/logs/sep-app/app-json.log"&lt;BR /&gt;|fields message&lt;BR /&gt;|rex field=_raw "errorCode=(?&amp;lt;Error&amp;gt;[^,]*)"&lt;BR /&gt;|rex field=_raw "orderId":(?&amp;lt;Order&amp;gt;\w+)"&lt;BR /&gt;|table Error, Order&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:06:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693429#M12521</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-16T06:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693430#M12522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244235"&gt;@bhaskar5428&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this seems to be a json format, so if you use INDEXED_EXTRACTIONS = JSON in the props.conf or if you use the spath command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.2/SearchReference/Spath" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.2/SearchReference/Spath&lt;/A&gt;) in the search you should be able to extract your fields.&lt;/P&gt;&lt;P&gt;It's also possible to use the rex command to extract the field, but to do this I need an example of your data in text format (not a screenshot), using the Inser/Edit code sample button (the one with "&amp;lt;/&amp;gt;").&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693430#M12522</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-16T06:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693431#M12523</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex \"orderId\":\"(&amp;lt;?orderId&amp;gt;[\w\-]+)\" | rex \"errorCode\":\"(&amp;lt;?errorCode&amp;gt;\w+)\"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693431#M12523</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2024-07-16T06:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693432#M12524</link>
      <description>&lt;P&gt;Please find the text message&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;message&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Send jms message [queue=SEP.TO.PEIN, statusCode=200, idempotencyId=b95d0d10-9709-4299-9d3e-8c65dd5a539d, processId=PE2400000582026, delivApp=null, message={"transactionItems":[{"itemId":"4f2170cd-35f6-4d03-b0fe-6ebbca6e00cb","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"adea3dff-8e02-433e-a2ad-94bac828989b","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"bf96b534-2150-4228-843f-9fb920a1f44f","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"cb6e42ac-ee83-48b6-8213-7faf0311c6d0","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"bdd8a76f-ddb4-4616-a793-68ddd72aad0e","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"cb339f2a-ad85-410c-9043-275aa1e4fe17","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595011","currencyCode":"INR"}}}],"orderStatusResponse":{"orderStatus":"ORDER_FAILURE","orderId":"&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;b95d0d10-9709-4299-9d3e-8c65dd5a539d&lt;/FONT&gt;&lt;/STRONG&gt;"},"error":{"errorCode":"&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;SEP013&lt;/STRONG&gt;&lt;/FONT&gt;","errorDescription":"Cannot find IDMS-0784 account by accNumber: 0190595009"}}]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Above highlighted am trying to extract in two fields, Please help&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;and also below query am using&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;index = app_events_sdda_core_de_prod source="/home/sdda/apps/logs/sep-app/app-json.log" SEP013&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;But i can not use above , because eventually i need all errorcodes , and that is available on below search query.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;index = app_events_sdda_core_de_prod source="/home/sdda/apps/logs/sep-app/app-json.log" level=TRACE&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ---&amp;gt; so please suggest how can i find error code and order id by using this search&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693432#M12524</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-16T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693434#M12525</link>
      <description>&lt;P&gt;Not working&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_0-1721111240746.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31777i31291696895ED55B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1721111240746.png" alt="bhaskar5428_0-1721111240746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693434#M12525</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-16T06:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693435#M12526</link>
      <description>&lt;P&gt;message: Send jms message [queue=SEP.TO.PEIN, statusCode=200, idempotencyId=b95d0d10-9709-4299-9d3e-8c65dd5a539d, processId=PE2400000582026, delivApp=null, message={"transactionItems":[{"itemId":"4f2170cd-35f6-4d03-b0fe-6ebbca6e00cb","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"adea3dff-8e02-433e-a2ad-94bac828989b","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"bf96b534-2150-4228-843f-9fb920a1f44f","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"cb6e42ac-ee83-48b6-8213-7faf0311c6d0","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"bdd8a76f-ddb4-4616-a793-68ddd72aad0e","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595009","currencyCode":"INR"}}},{"itemId":"cb339f2a-ad85-410c-9043-275aa1e4fe17","status":"FAILED","accountIdentification":{"contractAccountNumber":{"branchCode":"0784","accountNumber":"0190595011","currencyCode":"INR"}}}],"orderStatusResponse":{"orderStatus":"ORDER_FAILURE","orderId":"&lt;STRONG&gt;b95d0d10-9709-4299-9d3e-8c65dd5a539d&lt;/STRONG&gt;"},"error":{"errorCode":"&lt;STRONG&gt;SEP013&lt;/STRONG&gt;","errorDescription":"Cannot find IDMS-0784 account by accNumber: 0190595009"}}]&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693435#M12526</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-16T06:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693437#M12527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244235"&gt;@bhaskar5428&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;this is the regex to extract the highlighted fields:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\"orderId\":\"(?&amp;lt;orderId&amp;gt;[^\"]+)\"},\"error\":\{\"errorCode\":\"(?&amp;lt;errorCode&amp;gt;[^\"]+)\""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/XkBntG/1" target="_blank"&gt;https://regex101.com/r/XkBntG/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I hint to try with INDEXED_EXTRACTIONS = JSON or spath.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693437#M12527</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-16T06:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693438#M12528</link>
      <description>&lt;P&gt;so basically i would like to find all error code with their order id&amp;nbsp;&lt;BR /&gt;i want to use below main search&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index = app_events_sdda_core_de_prod source="/home/sdda/apps/logs/sep-app/app-json.log" level=TRACE&lt;BR /&gt;&lt;BR /&gt;so what i posted earlier part of above search&amp;nbsp;&lt;BR /&gt;i want to extract all errorcodes and their order id&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Later i am planning to put bar chart for the same based on range&lt;BR /&gt;hope you got requirement&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693438#M12528</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-16T06:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693439#M12529</link>
      <description>&lt;P&gt;can you please suggest how to use&amp;nbsp;&lt;SPAN&gt;INDEXED_EXTRACTIONS = JSON or spath.&lt;/SPAN&gt;&lt;BR /&gt;i mean any example and what are the benefits.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693439#M12529</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-16T06:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693441#M12530</link>
      <description>&lt;P&gt;btw, i tried below rex , any idea why its not showing any records&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_0-1721113078400.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31778i0F315461049AA8DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1721113078400.png" alt="bhaskar5428_0-1721113078400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 06:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693441#M12530</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-07-16T06:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693445#M12531</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244235"&gt;@bhaskar5428&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;here you can find all the information&amp;nbsp;&lt;A href="https://hurricanelabs.com/splunk-tutorials/the-indexed-extractions-vs-search-time-extractions-splunk-case-study/" target="_blank"&gt;https://hurricanelabs.com/splunk-tutorials/the-indexed-extractions-vs-search-time-extractions-splunk-case-study/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, you can add INDEXED_EXTRACTIONS on the props.conf on the UFs and or the SHs&lt;/P&gt;&lt;P&gt;or use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
INDEXED_EXTRACTIONS = JSON&lt;/LI-CODE&gt;&lt;P&gt;or in search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = app_events_sdda_core_de_prod source="/home/sdda/apps/logs/sep-app/app-json.log"
| spath&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693445#M12531</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-16T08:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693449#M12532</link>
      <description>&lt;P&gt;Honestly (yes, I know it is not helping in the immediate problem at hand but might save you some time in the future), this is a very ugly data format. I suspect that someone just receives data with a third-party solution which adds its own headers and forwards it to Splunk. The result is that you have some structure which Splunk is able to parse (the "outer json") and within that you have completely unparsed &lt;EM&gt;message&lt;/EM&gt; field. And this field is "kinda like a json but not quite" so it doesn't parse properly (and I suspect there can be other types of events in that message field so no single parsing schema would work here).&lt;/P&gt;&lt;P&gt;In the long run it would be best if you could force admins of your source solution to provide data in a more sane format.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 09:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693449#M12532</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-16T09:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: need help on REX command</title>
      <link>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693455#M12533</link>
      <description>&lt;P&gt;It would help if you post the data as text instead of a photo of it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 09:20:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/need-help-on-REX-command/m-p/693455#M12533</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2024-07-16T09:20:13Z</dc:date>
    </item>
  </channel>
</rss>

