<?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: separate semicolon and create table in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633825#M15649</link>
    <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;extract&lt;/FONT&gt; command will handle the case where all values are separated by the same set of delimiters.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| extract pairdelim=";" kvdelim="="&lt;/LI-CODE&gt;&lt;P&gt;That is not the case in your example data, however.&amp;nbsp; Only the message field has those delimiters and the extract command only works on _raw.&amp;nbsp; That's why I used &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt;, instead.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 01:06:16 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-03-09T01:06:16Z</dc:date>
    <item>
      <title>How to separate semicolon and create table?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633797#M15645</link>
      <description>&lt;P&gt;The search table is empty other than _time for message. Can you please advise how to disable kay values in table.&lt;/P&gt;
&lt;P&gt;Sample message&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"timestamp": "2023-03-05 19:06:43,978+0000",&lt;BR /&gt;"level": "INFO",&lt;BR /&gt;"location": "request:201",&lt;BR /&gt;"message": "CSSRequestId=12312311-sdgdgdbbsaas;ProcessingRegion=us-east-1;RequestStatus=Completed;Platform=;RequestId=12312311-869a-3932-97d1-sdgdgdbbsaas--123123;ResponseStatusCode=200;PlatformBuckets=['e1--application','e2-application'];DestKey=Dev/20/03/05/14/01-01-0-File.xml;Source=external;SourceKey=abcded/xyz/file.xml;",&lt;BR /&gt;"service": "gwy",&lt;BR /&gt;"cold_start": true,&lt;BR /&gt;"function_name": "GWY-IB",&lt;BR /&gt;"function_memory_size": "208",&lt;BR /&gt;"function_arn": "arn:aws:us-east-3:ib",&lt;BR /&gt;"function_request_id": "xxxxxxxxxxxxxx",&lt;BR /&gt;"xray_trace_id": "1-xxxxxxxx"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search index:&lt;/P&gt;
&lt;P&gt;index="text" RequestStatus RequestID | table RequestStatus, RequestID,PlatformBuckets,ResponseStatusCode _time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index="text" RequestStatus RequestID | rex "RequestStatus = (?&amp;lt;RequestStatus&amp;gt;\S+)" | rex "RequestID = ?[\S+](?&amp;lt;RequestID&amp;gt;[\S+]*)" | table RequestStatus, RequestID,PlatformBuckets,ResponseStatusCode _time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 20:32:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633797#M15645</guid>
      <dc:creator>padrsri</dc:creator>
      <dc:date>2023-03-08T20:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: separate semicolon and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633804#M15647</link>
      <description>&lt;P&gt;When table fields are blank it's almost always because the field is null (other times it's an empty string).&amp;nbsp; In this case, the fields are null because the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; commands don't match the data and because 2 fields in the &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; command are not extracted.&amp;nbsp; When creating regular expressions for the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command, spaces and case are very significant.&lt;/P&gt;&lt;P&gt;Try this query&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="test RequestId RequestStatus
| rex "RequestStatus=(?&amp;lt;RequestStatus&amp;gt;\w+)" 
| rex "RequestId=(?&amp;lt;RequestID&amp;gt;[^;]*)" 
| rex "PlatformBuckets=(?&amp;lt;PlatformBuckets&amp;gt;[^;]+)" 
| rex "ResponseStatusCode=(?&amp;lt;ResponseStatusCode&amp;gt;\d+)" 
| table RequestStatus, RequestID,PlatformBuckets,ResponseStatusCode _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 19:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633804#M15647</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-08T19:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: separate semicolon and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633807#M15648</link>
      <description>&lt;P&gt;Thank you for quick response. &amp;nbsp;Since all key’s/values are separating with semicolon without any space (e.g., &lt;STRONG&gt;Key1=TestValue;Key1=TestValue2;&lt;/STRONG&gt;&amp;nbsp; is there any generic function. Thank you for&amp;nbsp;your help.&lt;/P&gt;&lt;P&gt;message&amp;nbsp;sample&lt;/P&gt;&lt;P&gt;Key1=TestValue;Key1=TestValue2;Key3=TestValue3;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 20:21:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633807#M15648</guid>
      <dc:creator>padrsri</dc:creator>
      <dc:date>2023-03-08T20:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: separate semicolon and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633825#M15649</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;extract&lt;/FONT&gt; command will handle the case where all values are separated by the same set of delimiters.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| extract pairdelim=";" kvdelim="="&lt;/LI-CODE&gt;&lt;P&gt;That is not the case in your example data, however.&amp;nbsp; Only the message field has those delimiters and the extract command only works on _raw.&amp;nbsp; That's why I used &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt;, instead.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 01:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633825#M15649</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-09T01:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: separate semicolon and create table</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633953#M15655</link>
      <description>&lt;P&gt;Thank you for quick response.&amp;nbsp; pairdelim, kvdelim is not working. Since we have multiple key, values , is there any way to create template or some other process?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 21:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-separate-semicolon-and-create-table/m-p/633953#M15655</guid>
      <dc:creator>padrsri</dc:creator>
      <dc:date>2023-03-09T21:33:30Z</dc:date>
    </item>
  </channel>
</rss>

