<?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: Send events to null queue which dont have time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Send-events-to-null-queue-which-dont-have-time/m-p/678554#M113391</link>
    <description>&lt;P&gt;The regex is filtering lines beginning with "^", which aren't in your sample data.&amp;nbsp; Assuming that's a mistake, it's also filtering on any number of non-digits (including zero), which pretty much matches anything.&amp;nbsp; Try these settings&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;transforms
[filter]
REGEX = ^\D+
DEST_KEY = queue
FORMAT = nullQueue

props.conf

TIME_PREFIX = ^
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 20
CHARSET=AUTO
SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)
category=Custom
disabled=false
pulldown_type=true
TRANSFORMS-null=filter&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 24 Feb 2024 01:13:49 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-02-24T01:13:49Z</dc:date>
    <item>
      <title>Send events to null queue which dont have time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-events-to-null-queue-which-dont-have-time/m-p/678549#M113390</link>
      <description>&lt;P&gt;I have the following sample events coming from&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;source="/project/admin/git/ys/es/perf/de/pure/abc0*/logs/*/results.csv"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Event1: with no timestamp&amp;nbsp; and these type of data is in files&amp;nbsp; which are 2 days older&lt;/P&gt;
&lt;P&gt;abc|pxyz|0.1054|ops|0|null|null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Event 2 with timestamp --these are new files from same location and going forward the data would be the same as below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2024-02-23T00:48:17|AID|read|454482.351348|PS|0|null|null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to send data to splunk that has a timestamp and send the other to null queue or not to ingest it .&lt;BR /&gt;&lt;BR /&gt;Firstly I tried &lt;SPAN&gt;&lt;SPAN class=""&gt;MAX_DAYS_AGO=2 which did not work then&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;I tried the following props and transforms but it did not work .&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;transforms
[filter]
REGEX = ^^\D*
DEST_KEY = queue
FORMAT = nullQueue

props.conf


CHARSET=AUTO
SHOULD_LINEMERGE=false
category=Custom
disabled=false
pulldown_type=true
TRANSFORMS-null=filter&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 00:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-events-to-null-queue-which-dont-have-time/m-p/678549#M113390</guid>
      <dc:creator>power12</dc:creator>
      <dc:date>2024-02-24T00:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Send events to null queue which dont have time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-events-to-null-queue-which-dont-have-time/m-p/678554#M113391</link>
      <description>&lt;P&gt;The regex is filtering lines beginning with "^", which aren't in your sample data.&amp;nbsp; Assuming that's a mistake, it's also filtering on any number of non-digits (including zero), which pretty much matches anything.&amp;nbsp; Try these settings&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;transforms
[filter]
REGEX = ^\D+
DEST_KEY = queue
FORMAT = nullQueue

props.conf

TIME_PREFIX = ^
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 20
CHARSET=AUTO
SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)
category=Custom
disabled=false
pulldown_type=true
TRANSFORMS-null=filter&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 24 Feb 2024 01:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-events-to-null-queue-which-dont-have-time/m-p/678554#M113391</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-02-24T01:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Send events to null queue which dont have time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-events-to-null-queue-which-dont-have-time/m-p/678561#M113392</link>
      <description>&lt;P&gt;You could also go the other way around. Do the nullQueue by default and only send to indexQueue those that _do_ match the timestamp regex.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 07:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-events-to-null-queue-which-dont-have-time/m-p/678561#M113392</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-24T07:42:33Z</dc:date>
    </item>
  </channel>
</rss>

