<?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 rex comma with no data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-rex-comma-with-no-data/m-p/691458#M115009</link>
    <description>&lt;P&gt;I hve few events where data is not available. Instead I see commas where head6 and head7 data is not availble. Need rex so that I get output blank if no data but if data is available then it should provide output. below is the event (three commas beside between UNKNOWN AND /TEST)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;head1,head2,head3,head4,head5,head6,head7,head8,head9,head10,head11,head12&lt;/P&gt;&lt;P&gt;sadfasdfafasdfs,2024-06 21T01:33:30.918000+00:00,test12,1,UNKNOWN,,,/test/rrr/swss/customer1/454554/test.xml,UNKNOWN,PASS,2024-06-21T01:33:30.213000+00:00,UNKNOWN&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 14:36:06 GMT</pubDate>
    <dc:creator>ravir_jbp</dc:creator>
    <dc:date>2024-06-24T14:36:06Z</dc:date>
    <item>
      <title>how to rex comma with no data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-rex-comma-with-no-data/m-p/691458#M115009</link>
      <description>&lt;P&gt;I hve few events where data is not available. Instead I see commas where head6 and head7 data is not availble. Need rex so that I get output blank if no data but if data is available then it should provide output. below is the event (three commas beside between UNKNOWN AND /TEST)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;head1,head2,head3,head4,head5,head6,head7,head8,head9,head10,head11,head12&lt;/P&gt;&lt;P&gt;sadfasdfafasdfs,2024-06 21T01:33:30.918000+00:00,test12,1,UNKNOWN,,,/test/rrr/swss/customer1/454554/test.xml,UNKNOWN,PASS,2024-06-21T01:33:30.213000+00:00,UNKNOWN&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 14:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-rex-comma-with-no-data/m-p/691458#M115009</guid>
      <dc:creator>ravir_jbp</dc:creator>
      <dc:date>2024-06-24T14:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to rex comma with no data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-rex-comma-with-no-data/m-p/691462#M115011</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "(?&amp;lt;head1&amp;gt;[^,]*),(?&amp;lt;head2&amp;gt;[^,]*),(?&amp;lt;head3&amp;gt;[^,]*),(?&amp;lt;head4&amp;gt;[^,]*),(?&amp;lt;head5&amp;gt;[^,]*),(?&amp;lt;head6&amp;gt;[^,]*),(?&amp;lt;head7&amp;gt;[^,]*),(?&amp;lt;head8&amp;gt;[^,]*),(?&amp;lt;head9&amp;gt;[^,]*),(?&amp;lt;head10&amp;gt;[^,]*),(?&amp;lt;head11&amp;gt;[^,]*),(?&amp;lt;head12&amp;gt;[^,]*)"&lt;/LI-CODE&gt;&lt;P&gt;The fields will be null so you could use fillnull to give them values e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fillnull value="N/A"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 14:52:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-rex-comma-with-no-data/m-p/691462#M115011</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-06-24T14:52:55Z</dc:date>
    </item>
  </channel>
</rss>

