<?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: extract data in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-data/m-p/626377#M9213</link>
    <description>&lt;P&gt;Thanks for your reply gcusello...That works great splunk champ&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 09:00:50 GMT</pubDate>
    <dc:creator>vineela</dc:creator>
    <dc:date>2023-01-09T09:00:50Z</dc:date>
    <item>
      <title>How to extract data?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-data/m-p/625973#M9199</link>
      <description>&lt;P&gt;i need to extract one field whichis not having as field value pair and i have to distinguish the logs based on that particular field.&lt;BR /&gt;&lt;BR /&gt;Here is the example log:&lt;BR /&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"[&lt;/SPAN&gt;&lt;SPAN class=""&gt;10:30:04.075&lt;/SPAN&gt;&lt;SPAN&gt;] [&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;INFO&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; ] [] [&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;c.c.n.b.i.DefaultBusinessEventService&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;] [&lt;/SPAN&gt;&lt;SPAN class=""&gt;akka://MmsAuCluster/system/sharding/notificationAuthBpmn/4/nmT9K3rySjyoHHzxO9jHnQ_4/nmT9K3rySjyoHHzxO9jHnQ&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;method=prepare&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;triggerName=approvalStart&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;entity=&lt;/SPAN&gt;&lt;SPAN&gt;{'&lt;/SPAN&gt;&lt;SPAN class=""&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;0f86c9007ff511ed82ffd13c4d1f79a9a07ff511ed82ffd13c4d173b0a&lt;/SPAN&gt;&lt;SPAN&gt;','&lt;/SPAN&gt;&lt;SPAN class=""&gt;eventCode&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'approval&lt;/SPAN&gt;&lt;SPAN&gt;','&lt;/SPAN&gt;&lt;SPAN class=""&gt;paymentSystemId&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;MMS&lt;/SPAN&gt;&lt;SPAN&gt;','&lt;/SPAN&gt;&lt;SPAN class=""&gt;servicingAgentBIC&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;null&lt;/SPAN&gt;&lt;SPAN&gt;','&lt;/SPAN&gt;&lt;SPAN class=""&gt;messageIdentification&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;0f86ff511ed82ffd13c4d173b0a&lt;/SPAN&gt;&lt;SPAN&gt;','&lt;/SPAN&gt;&lt;SPAN class=""&gt;businessDomainName&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;Mandate&lt;/SPAN&gt;&lt;SPAN&gt;','&lt;/SPAN&gt;&lt;SPAN class=""&gt;catalogCode&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;AN&lt;/SPAN&gt;&lt;SPAN&gt;','&lt;/SPAN&gt;&lt;SPAN class=""&gt;functionCode&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;APAL_INTERACTION'&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Above log is the example here i have extracted other fields in log which has field value pairs like triggername,eventcode and all.&lt;BR /&gt;&lt;BR /&gt;But i need to filter log for "&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;c.c.n.b.i.DefaultBusinessEventService" and info logs.&lt;BR /&gt;Can anyone help me out ..how to filter logs based on above information.&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 21:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-data/m-p/625973#M9199</guid>
      <dc:creator>vineela</dc:creator>
      <dc:date>2023-01-05T21:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: extract data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-data/m-p/625975#M9200</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234209"&gt;@vineela&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this seems to be a json log so you can use the spath command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Spath" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Spath&lt;/A&gt;), otherwise you can use this regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "^[^\[]+\[[^\]]+\]\s+\[(?&amp;lt;log_level&amp;gt;[^\]]+)\]\s+\[[^\]]*\]\s+(?&amp;lt;your_field&amp;gt;[^\]]+)"&lt;/LI-CODE&gt;&lt;P&gt;That you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/xkkVfi/1" target="_blank"&gt;https://regex101.com/r/xkkVfi/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 09:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-data/m-p/625975#M9200</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-05T09:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: extract data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-data/m-p/626377#M9213</link>
      <description>&lt;P&gt;Thanks for your reply gcusello...That works great splunk champ&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 09:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-data/m-p/626377#M9213</guid>
      <dc:creator>vineela</dc:creator>
      <dc:date>2023-01-09T09:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: extract data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-data/m-p/626379#M9214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234209"&gt;@vineela&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 09:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-data/m-p/626379#M9214</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-09T09:10:45Z</dc:date>
    </item>
  </channel>
</rss>

