<?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 this data from the log? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-this-data-from-the-log/m-p/608169#M105539</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am fairly new to using splunk. I am having some trouble understanding how to extract the fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My sample data looks somewhat like this:&lt;/P&gt;&lt;P&gt;...Event={request=Request{data={firstName=jane, lastName=doe, yearOfBirth=1996}}}...&lt;/P&gt;&lt;P&gt;I want to get count based on yearOfBirth. How should I do it?&lt;/P&gt;&lt;P&gt;I tried doing &lt;STRONG&gt;stats count by request.data.yearOfBirth&lt;/STRONG&gt;,&amp;nbsp;and also tried simply doing &lt;STRONG&gt;stats count by yearOfBirth&lt;/STRONG&gt; but neither returned any results. Am I accessing the yearOfBirth field incorrectly?&lt;BR /&gt;How can I&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 19:30:16 GMT</pubDate>
    <dc:creator>as2050</dc:creator>
    <dc:date>2022-08-03T19:30:16Z</dc:date>
    <item>
      <title>How to extract this data from the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-this-data-from-the-log/m-p/608169#M105539</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am fairly new to using splunk. I am having some trouble understanding how to extract the fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My sample data looks somewhat like this:&lt;/P&gt;&lt;P&gt;...Event={request=Request{data={firstName=jane, lastName=doe, yearOfBirth=1996}}}...&lt;/P&gt;&lt;P&gt;I want to get count based on yearOfBirth. How should I do it?&lt;/P&gt;&lt;P&gt;I tried doing &lt;STRONG&gt;stats count by request.data.yearOfBirth&lt;/STRONG&gt;,&amp;nbsp;and also tried simply doing &lt;STRONG&gt;stats count by yearOfBirth&lt;/STRONG&gt; but neither returned any results. Am I accessing the yearOfBirth field incorrectly?&lt;BR /&gt;How can I&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:30:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-this-data-from-the-log/m-p/608169#M105539</guid>
      <dc:creator>as2050</dc:creator>
      <dc:date>2022-08-03T19:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract this data from the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-this-data-from-the-log/m-p/608178#M105540</link>
      <description>&lt;P&gt;Check what fields are available in your data by checking field sidebar (left hand panel when you run your search). You can click on a field so see what way the field should be referred.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't see any relevant field extracted, make sure that you're using correct Search mode (dropdown below time range picker, select Smart Mode OR Verbose Mode). If you still don't see a field for yearOfBirth, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your base search (index=x sourcetype=y)
| rex "yearOfBirth\=(?&amp;lt;yearOfBirth&amp;gt;\d+)"
| stats count by yearOfBirth&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Aug 2022 20:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-this-data-from-the-log/m-p/608178#M105540</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-08-03T20:08:49Z</dc:date>
    </item>
  </channel>
</rss>

