<?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 can i extract keywords from my log as field values for field name API's in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481105#M134818</link>
    <description>&lt;P&gt;@TISKAR , thanks for your response but  this rex is extracting only the value  "Smile" and not OrderUpdateWithAccountInfoRequest ,VinValidationRequest,GetEntitledRequest ...&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 06:22:48 GMT</pubDate>
    <dc:creator>Sujithkumarkb</dc:creator>
    <dc:date>2020-01-10T06:22:48Z</dc:date>
    <item>
      <title>How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481101#M134814</link>
      <description>&lt;P&gt;How can i extract the below block letter keywords (OrderUpdateWithAccountInfoRequest ,VinValidationRequest,GetEntitledRequest ..)from my log as field values for field name API's?&lt;/P&gt;

&lt;P&gt;2020-01-09 03:58:08,280 INFO  &lt;A href="https://community.splunk.com/default%20task-24" target="_blank"&gt;com.hti.gw.interceptor.ServiceInterceptor&lt;/A&gt; (Hughes_Tre13342) &lt;BR /&gt;
    &amp;lt;&lt;STRONG&gt;OrderUpdateWithAccountInfoRequest ** xmlns:ns5=".......&lt;BR /&gt;
2020-01-08 06:25:25,836 INFO  &lt;A href="https://community.splunk.com/default%20task-59" target="_blank"&gt;com.vzt.pg.AbstractMiddlewareDelegate&lt;/A&gt; (AMP_RptDqckdAsT5ldcFG8eh_tdzbmtxux44z850) &amp;lt;&lt;/STRONG&gt;VinValidationRequest** xmlns:ns2="&lt;A href="http://www.hughestelematics.com" target="_blank"&gt;http://www.hughestelematics.com&lt;/A&gt;.....&lt;BR /&gt;
2020-01-08 06:25:25,546 INFO  &lt;A href="https://community.splunk.com/default%20task-59" target="_blank"&gt;com.vzt.pg.AbstractMiddlewareDelegate&lt;/A&gt; (AMP_RptDqckdAsT5ldcFG8eh_tdzbmtxux44z850) &amp;lt;&lt;STRONG&gt;GetEntitledRequest&lt;/STRONG&gt; xmlns:ns2="ht......&lt;BR /&gt;
2020-01-08 06:20:13,637 INFO  &lt;A href="https://community.splunk.com/default%20task-4" target="_blank"&gt;com.vzt.pg.AbstractMiddlewareDelegate&lt;/A&gt; &lt;BR /&gt;
    (AMP_RptDqckdAsT5ldcFG8eh_9wiiwnvakzcdc66) &amp;lt;&lt;STRONG&gt;VinValidationRequest&lt;/STRONG&gt; xmlns:ns2="http:/......&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481101#M134814</guid>
      <dc:creator>Sujithkumarkb</dc:creator>
      <dc:date>2020-09-30T03:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481102#M134815</link>
      <description>&lt;P&gt;The &lt;CODE&gt;rex&lt;/CODE&gt; command will do that at search time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "\)\s+\&amp;lt;(?&amp;lt;API&amp;gt;\S+)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 13:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481102#M134815</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-09T13:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481103#M134816</link>
      <description>&lt;P&gt;Hello :),&lt;/P&gt;

&lt;P&gt;I simulate the extractation of API field, This is example to extract field API from log, you can past this request in your empty search and run it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval raw="2020-01-09 03:58:08,280 INFO \[com.hti.gw.interceptor.ServiceInterceptor\] (default task-24) (Hughes_Tre13342)
&amp;lt;OrderUpdateWithAccountInfoRequest xmlns:ns5=\"....\" API=\"Smile\"&amp;gt; &amp;lt;second ligne&amp;gt;" 
| rex field=raw "OrderUpdateWithAccountInfoRequest[^API]+API=\"(?&amp;lt;API&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481103#M134816</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2020-01-09T14:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481104#M134817</link>
      <description>&lt;P&gt;@richgalloway  Thanks for the response , but this rex is extracting only the value  "?xml" and not OrderUpdateWithAccountInfoRequest ,VinValidationRequest,GetEntitledRequest ...&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 06:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481104#M134817</guid>
      <dc:creator>Sujithkumarkb</dc:creator>
      <dc:date>2020-01-10T06:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481105#M134818</link>
      <description>&lt;P&gt;@TISKAR , thanks for your response but  this rex is extracting only the value  "Smile" and not OrderUpdateWithAccountInfoRequest ,VinValidationRequest,GetEntitledRequest ...&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 06:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481105#M134818</guid>
      <dc:creator>Sujithkumarkb</dc:creator>
      <dc:date>2020-01-10T06:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481106#M134819</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
 | eval raw="2020-01-09 03:58:08,280 INFO \[com.hti.gw.interceptor.ServiceInterceptor\] (default task-24) (Hughes_Tre13342)
 &amp;lt;OrderUpdateWithAccountInfoRequest xmlns:ns5=\"....\" API=\"Smile\"&amp;gt; &amp;lt;second ligne&amp;gt;" 
 | rex field=raw "&amp;lt;(?&amp;lt;API&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jan 2020 08:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481106#M134819</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2020-01-10T08:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481107#M134820</link>
      <description>&lt;P&gt;@TISKAR , that works . This way i can extract one API at a time , But there are more than 400 APIs like OrderUpdateWithAccountInfoRequest ..&lt;BR /&gt;
How can I generically run Rex and extract all APIs under the field API and save them as extracted field values&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481107#M134820</guid>
      <dc:creator>Sujithkumarkb</dc:creator>
      <dc:date>2020-01-10T09:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481108#M134821</link>
      <description>&lt;P&gt;@Sujithkumarkb try to use max_match option of rex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | rex max_match=50 field=raw ".*&amp;lt;(?&amp;lt;API&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
  | eval raw="2020-01-09 03:58:08,280 INFO \[com.hti.gw.interceptor.ServiceInterceptor\] (default task-24) (Hughes_Tre13342)
  &amp;lt;OrderUpdateWithAccountInfoRequest xmlns:ns5=\"....\" API=\"Smile\"&amp;gt; 2020-01-09 03:58:08,280 INFO \[com.hti.gw.interceptor.ServiceInterceptor\] (default task-24) (Hughes_Tre13342)
  &amp;lt;TEST xmlns:ns5=\"....\" API=\"Smile\"&amp;gt;" 
  | rex max_match=50 field=raw ".*&amp;lt;(?&amp;lt;API&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jan 2020 10:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481108#M134821</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2020-01-10T10:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481109#M134822</link>
      <description>&lt;P&gt;Interesting.  There is no "?xml" in your sample data so, of course, that was not tested.  Is there anything else about the data we should know?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 11:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481109#M134822</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-10T11:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can i extract keywords from my log as field values for field name API's</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481110#M134823</link>
      <description>&lt;P&gt;There is ?xml in the data , but that being extracted as the field value is not expected .&lt;BR /&gt;
The expected extraction is OrderUpdateWithAccountInfoRequest ,VinValidationRequest,GetEntitledRequest etc shown on the raw data .&lt;/P&gt;

&lt;P&gt;The data is api requests that are made , where i am trying to capture the API names and once filtered for it on dashboard , i will be populating its respective responses .&lt;BR /&gt;
for example OrderUpdateWithAccountInfoRequest  is a API request which i would want to add as a value in multselect and once it is selected i would populate the OrderUpdateWithAccountInfoResponse xml from raw data as output.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-extract-keywords-from-my-log-as-field-values-for-field/m-p/481110#M134823</guid>
      <dc:creator>Sujithkumarkb</dc:creator>
      <dc:date>2020-01-10T12:42:39Z</dc:date>
    </item>
  </channel>
</rss>

