<?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 to search and create table report? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-create-table-report/m-p/638894#M221372</link>
    <description>&lt;P&gt;Following Splunk documentation will get you started.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Managesearch-timefieldextractions" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Managesearch-timefieldextractions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Extract all the fields, i.e. your data fields + thread_id (value within first set of square bracket)+ module_name (value within second set of square bracket).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you've your fields extracted try something like this to get the report&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Your base search
| table thread_id module_name "RequestID", "Policy Number", "Email", "Address", "Amount Number", "Pmt Amount", "Pmt Date"
| stats values(*) as * by thread_id module_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 20:38:19 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2023-04-05T20:38:19Z</dc:date>
    <item>
      <title>How to search and create table report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-create-table-report/m-p/638884#M221368</link>
      <description>&lt;P&gt;I have a logfile with information like this -&lt;/P&gt;
&lt;P&gt;2023-04-05 13:54:17.259 INFO [http-nio-8080-exec-117][OTPViewController:206] The list of the form bean for Kubra&lt;BR /&gt;2023-04-05 13:54:17.260 INFO [http-nio-8080-exec-117][OTPViewController:207] Payment &lt;STRONG&gt;Request ID&lt;/STRONG&gt; for debug the Kubra payment. DanBkDg981&lt;BR /&gt;2023-04-05 13:54:17.260 INFO [http-nio-8080-exec-117][OTPViewController:208] &lt;STRONG&gt;Amount Number&lt;/STRONG&gt; . 00902418&lt;BR /&gt;2023-04-05 13:54:17.260 INFO [http-nio-8080-exec-117][OTPViewController:209] &lt;STRONG&gt;Policy Number&lt;/STRONG&gt;. 05349531&lt;BR /&gt;2023-04-05 13:54:17.261 INFO [http-nio-8080-exec-117][OTPViewController:210] &lt;STRONG&gt;Address&lt;/STRONG&gt;. 2912 9TH ST W&lt;BR /&gt;2023-04-05 13:54:17.261 INFO [http-nio-8080-exec-117][OTPViewController:211] &lt;STRONG&gt;Email&lt;/STRONG&gt;. test@aol.com&lt;BR /&gt;2023-04-05 13:54:17.262 INFO [http-nio-8080-exec-117][OTPViewController:212] &lt;STRONG&gt;Pmt Amount&lt;/STRONG&gt; . 999.00&lt;BR /&gt;2023-04-05 13:54:17.262 INFO [http-nio-8080-exec-117][OTPViewController:213] &lt;STRONG&gt;Pmt Date&lt;/STRONG&gt; . 05012023I&lt;/P&gt;
&lt;P&gt;Need a report in table format for these columns:&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;"RequestID"	"Policy Number"	"Email"	"Address"	"Amount Number"	"Pmt Amount"	"Pmt Date"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can search based on the keyword "OTPViewController" and should look&amp;nbsp;for consecutive thread number "http-nio-8080-exec-117" and extraction of value should start from the keyword and the dot "."&lt;/P&gt;
&lt;P&gt;Will appreciate your feedback and time.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 19:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-create-table-report/m-p/638884#M221368</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2023-04-05T19:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and create table report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-create-table-report/m-p/638894#M221372</link>
      <description>&lt;P&gt;Following Splunk documentation will get you started.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Managesearch-timefieldextractions" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Managesearch-timefieldextractions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Extract all the fields, i.e. your data fields + thread_id (value within first set of square bracket)+ module_name (value within second set of square bracket).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you've your fields extracted try something like this to get the report&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Your base search
| table thread_id module_name "RequestID", "Policy Number", "Email", "Address", "Amount Number", "Pmt Amount", "Pmt Date"
| stats values(*) as * by thread_id module_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 20:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-create-table-report/m-p/638894#M221372</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2023-04-05T20:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and create table report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-create-table-report/m-p/638895#M221373</link>
      <description>&lt;P&gt;This is the Splunk Community, not chatGPT.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please share the queries you've tried so far and how they've not met your expectations.&amp;nbsp; We'll be happy to correct errors and misconceptions.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 20:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-create-table-report/m-p/638895#M221373</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-05T20:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and create table report?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-create-table-report/m-p/639536#M221595</link>
      <description>&lt;P&gt;I tried to run the following query. Although it runs with 20K events but its not generating output in the table.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=yourinndex "OTPViewController"
| rex "(?ms)OTPViewController:(?&amp;lt;session&amp;gt;http-nio-8080-exec-\d+).*?Policy Number\. (?&amp;lt;PolicyNumber&amp;gt;[^\n]+)\n.*?Email\. (?&amp;lt;Email&amp;gt;[^\n]+)\n.*?Address\. (?&amp;lt;Address&amp;gt;[^\n]+)\n.*?Amount Number \. (?&amp;lt;AmountNumber&amp;gt;[^\n]+)\n.*?Pmt Amount \. (?&amp;lt;PmtAmount&amp;gt;[^\n]+)\n"
| stats values(*) as * by session
| table PolicyNumber, Email, Address, AmountNumber, PmtAmount&lt;/LI-CODE&gt;&lt;P&gt;Can you tell what can be the issue here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 18:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-create-table-report/m-p/639536#M221595</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2023-04-11T18:27:15Z</dc:date>
    </item>
  </channel>
</rss>

