<?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 multiple fields and create table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652879#M225600</link>
    <description>&lt;P&gt;Looks like you just need to name the capture groups with the field names you want to use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=log | rex "Private Site : '(?&amp;lt;site&amp;gt;[^']+)' created by user : '(?&amp;lt;user&amp;gt;[^']+)' with DRNumber : '(?&amp;lt;drumber&amp;gt;[^']+)'" | table site, user ,drnumber&lt;/LI-CODE&gt;&lt;P&gt;By the way, it looks like the single quotes may have been changed when you pasted your example in. It is best to use code blocks &amp;lt;/&amp;gt; as I have just done to ensure formatting and content changes don't occur when showing events and SPL code.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 10:30:30 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-08-02T10:30:30Z</dc:date>
    <item>
      <title>How to extract multiple fields and create a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652844#M225589</link>
      <description>&lt;P&gt;&lt;SPAN&gt;02.08.2023 12:44:10.690 *INFO* [sling-threadpool-2cfa6523-0895-49ea-bb99-ae6f63c25cf6-32-Create Site from Template(aaa/jobs/abc)] bbb.CreateSiteFromSiteTemplateJobExecutor Private Site : ‘site4’ created by user : ‘admin’ with MRNumber :&amp;nbsp; ‘dr4’&lt;BR /&gt;&lt;BR /&gt;I want to extract site , user and DR number and create table&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 19:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652844#M225589</guid>
      <dc:creator>bharat149</dc:creator>
      <dc:date>2023-08-02T19:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652847#M225590</link>
      <description>&lt;P&gt;You have been shown how to use rex before - how could you modify this to locate (anchor) the string that you want and extract the data into a field using a pattern?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Get-customer-ID-form-logs/m-p/546840#M155024" target="_blank"&gt;Get customer ID form logs - Splunk Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 09:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652847#M225590</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-02T09:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652853#M225591</link>
      <description>&lt;LI-SPOILER&gt;i need splunk querry&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 02 Aug 2023 09:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652853#M225591</guid>
      <dc:creator>bharat149</dc:creator>
      <dc:date>2023-08-02T09:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652867#M225592</link>
      <description>&lt;P&gt;OK what rex command have you tried so far?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 09:46:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652867#M225592</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-02T09:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652877#M225598</link>
      <description>&lt;P&gt;sourcetype=log | rex "Private Site : ‘(?[^’]+)’ created by user : ‘(?[^’]+)’ with DRNumber : ‘(?[^’]+)’" | table site, user ,drnumber&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652877#M225598</guid>
      <dc:creator>bharat149</dc:creator>
      <dc:date>2023-08-02T10:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652879#M225600</link>
      <description>&lt;P&gt;Looks like you just need to name the capture groups with the field names you want to use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=log | rex "Private Site : '(?&amp;lt;site&amp;gt;[^']+)' created by user : '(?&amp;lt;user&amp;gt;[^']+)' with DRNumber : '(?&amp;lt;drumber&amp;gt;[^']+)'" | table site, user ,drnumber&lt;/LI-CODE&gt;&lt;P&gt;By the way, it looks like the single quotes may have been changed when you pasted your example in. It is best to use code blocks &amp;lt;/&amp;gt; as I have just done to ensure formatting and content changes don't occur when showing events and SPL code.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652879#M225600</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-02T10:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652880#M225601</link>
      <description>&lt;P&gt;Not working&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:39:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652880#M225601</guid>
      <dc:creator>bharat149</dc:creator>
      <dc:date>2023-08-02T10:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652881#M225602</link>
      <description>&lt;P&gt;source="error1.log" host="Bharats-MacBook-Pro.local" sourcetype="test1" | rex "Private Site : '(?&amp;lt;site&amp;gt;[^']+)' created by user : '(?&amp;lt;user&amp;gt;[^']+)' with DRNumber : '(?&amp;lt;drNumber&amp;gt;[^']+)'"&lt;BR /&gt;&lt;BR /&gt;Rex is not wokring all the logs are getting printed&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652881#M225602</guid>
      <dc:creator>bharat149</dc:creator>
      <dc:date>2023-08-02T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652882#M225603</link>
      <description>&lt;P&gt;Your search doesn't appear to have any filtering so I would have expected all logs to have been shown&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652882#M225603</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-02T10:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652883#M225604</link>
      <description>&lt;P&gt;How to selected only the rex events only&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652883#M225604</guid>
      <dc:creator>bharat149</dc:creator>
      <dc:date>2023-08-02T10:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extract multiple fields and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652886#M225607</link>
      <description>&lt;P&gt;You could add your anchor strings to the initial search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=log "Private Site : " " created by user : " " with DRNumber :" | rex "Private Site : '(?&amp;lt;site&amp;gt;[^']+)' created by user : '(?&amp;lt;user&amp;gt;[^']+)' with DRNumber : '(?&amp;lt;drumber&amp;gt;[^']+)'" | table site, user ,drnumber&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Aug 2023 11:10:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-fields-and-create-a-table/m-p/652886#M225607</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-02T11:10:11Z</dc:date>
    </item>
  </channel>
</rss>

