<?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: Regex issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-issue/m-p/695408#M236469</link>
    <description>&lt;P&gt;can you give me example ?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 12:11:57 GMT</pubDate>
    <dc:creator>cbiraris</dc:creator>
    <dc:date>2024-08-06T12:11:57Z</dc:date>
    <item>
      <title>Regex issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-issue/m-p/695398#M236465</link>
      <description>&lt;P&gt;Hi Team&lt;BR /&gt;&lt;BR /&gt;i am trying to make below field regex which is coming in every single event. but its not allowing me to use same field name for 2 same type of entry as they coming in same single event.&lt;BR /&gt;&lt;BR /&gt;for example:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{ "&lt;/SPAN&gt;&lt;SPAN class=""&gt;class1&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;student1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "123&lt;/SPAN&gt;&amp;nbsp;rollnumber&lt;SPAN&gt;" }, "&lt;SPAN class=""&gt;class2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; { "&lt;SPAN class=""&gt;student1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "123&lt;/SPAN&gt; rollno&lt;SPAN&gt;", "&lt;SPAN class=""&gt;student2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "321&lt;/SPAN&gt; rollno&lt;SPAN&gt;" } }&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;1)class1 and class2 should be under Class field&lt;BR /&gt;if i search for class1 i should only find student 1 and related info.&amp;nbsp;&lt;BR /&gt;and&amp;nbsp;&lt;BR /&gt;if i search for class3&amp;nbsp; i should only find student 1 and related info.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;they will be in the field like class, student, number, and type of number&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Class field&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;class1&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="24px"&gt;class2&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;student name&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&lt;SPAN class=""&gt;student1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="24px"&gt;&lt;SPAN class=""&gt;student1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;number&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;123&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="24px"&gt;123&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="24px"&gt;321&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;type of number&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;rollnumber&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="24px"&gt;rollno&lt;/TD&gt;&lt;TD width="16.666666666666668%" height="24px"&gt;rollno&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 06 Aug 2024 10:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-issue/m-p/695398#M236465</guid>
      <dc:creator>cbiraris</dc:creator>
      <dc:date>2024-08-06T10:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regex issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-issue/m-p/695405#M236467</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247215"&gt;@cbiraris&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you should create your report with the last two fields in one and then separate them using a regex, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| rename Class.student_name AS student_name Class.number AS number
| rex field=number "^(?&amp;lt;number&amp;gt;\d+)\s(?&amp;lt;type_of_number&amp;gt;.*)"
| table student_name number type_of_number&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 11:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-issue/m-p/695405#M236467</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-08-06T11:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regex issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-issue/m-p/695408#M236469</link>
      <description>&lt;P&gt;can you give me example ?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 12:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-issue/m-p/695408#M236469</guid>
      <dc:creator>cbiraris</dc:creator>
      <dc:date>2024-08-06T12:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regex issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-issue/m-p/695409#M236470</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247215"&gt;@cbiraris&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;which kind of example? isn't the search I shared ok?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 12:22:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-issue/m-p/695409#M236470</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-08-06T12:22:21Z</dc:date>
    </item>
  </channel>
</rss>

