<?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: How to Ingest Splunk Lines starting with in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Ingest-Splunk-Lines-starting-with/m-p/583909#M102824</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/121880"&gt;@whitefang1726&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: do you want to filter log before indexing and index only a subseto of events or do you want to index alla events and display in search only filtered events?&lt;/P&gt;&lt;P&gt;If you want to take only events that start with "SLUNKD" , you should see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&amp;nbsp;and put in your indexers or (if present) in your Heavy Forwarders the following conf files:&lt;/P&gt;&lt;P&gt;in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-set= setnull,setparsing&lt;/LI-CODE&gt;&lt;P&gt;in transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = ^SPLUNKD
DEST_KEY = queue
FORMAT = indexQueue&lt;/LI-CODE&gt;&lt;P&gt;In the second case, you index all events and in your search you could run something liker this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=your_sourcetype SPLUNKD
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 07 Feb 2022 08:16:30 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-02-07T08:16:30Z</dc:date>
    <item>
      <title>How to Ingest Splunk Lines starting with</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Ingest-Splunk-Lines-starting-with/m-p/583908#M102823</link>
      <description>&lt;P&gt;Hello, how can I ingest logs starting with a specific word:&lt;BR /&gt;&lt;BR /&gt;Sample Log Entry:&lt;BR /&gt;SPLUNKD-123456: Hello World&lt;BR /&gt;Hello World123&lt;BR /&gt;Hello World456&lt;BR /&gt;Hello World789&lt;BR /&gt;SPLUNKD-0000: Hello World&lt;BR /&gt;SPLUNKD-0012: Hello World&lt;BR /&gt;Hello World0123&lt;BR /&gt;Hello World0456&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Logs that will be ingested into Splunk:&lt;BR /&gt;&lt;BR /&gt;SPLUNKD-123456: Hello World&lt;BR /&gt;SPLUNKD-0000: Hello World&lt;BR /&gt;SPLUNKD-0012: Hello World&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 08:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Ingest-Splunk-Lines-starting-with/m-p/583908#M102823</guid>
      <dc:creator>whitefang1726</dc:creator>
      <dc:date>2022-02-07T08:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Ingest Splunk Lines starting with</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Ingest-Splunk-Lines-starting-with/m-p/583909#M102824</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/121880"&gt;@whitefang1726&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: do you want to filter log before indexing and index only a subseto of events or do you want to index alla events and display in search only filtered events?&lt;/P&gt;&lt;P&gt;If you want to take only events that start with "SLUNKD" , you should see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&amp;nbsp;and put in your indexers or (if present) in your Heavy Forwarders the following conf files:&lt;/P&gt;&lt;P&gt;in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
TRANSFORMS-set= setnull,setparsing&lt;/LI-CODE&gt;&lt;P&gt;in transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = ^SPLUNKD
DEST_KEY = queue
FORMAT = indexQueue&lt;/LI-CODE&gt;&lt;P&gt;In the second case, you index all events and in your search you could run something liker this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index sourcetype=your_sourcetype SPLUNKD
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 08:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Ingest-Splunk-Lines-starting-with/m-p/583909#M102824</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-07T08:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Ingest Splunk Lines starting with</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-Ingest-Splunk-Lines-starting-with/m-p/583917#M102825</link>
      <description>&lt;P&gt;Filtering on ingest is one way (relatively universal but adding load to your indexers/heavy forwarders). You can also try to prevent the entries from being picked up by the input but how to do that is highly dependent on where you have your events and how you are receiving/pulling them.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 10:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-Ingest-Splunk-Lines-starting-with/m-p/583917#M102825</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-07T10:41:00Z</dc:date>
    </item>
  </channel>
</rss>

