<?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 do i index only specific lines from my log file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-index-only-specific-lines-from-my-log-file/m-p/544128#M90819</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222977"&gt;@Ashwini008&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;one quick question: is each row a separate event or a part of an event that contains all the rows?&lt;/P&gt;&lt;P&gt;If each row is an event, you can discard the other rows following the steps at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest," target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest,&lt;/A&gt;&amp;nbsp;in few words, you have to configure your props.conf and tranforms.conf on your Indexers or (if present) Heavy Forwarders adding the following rows in an App:&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 = EmployeeServices\/com\)
DEST_KEY = queue
FORMAT = indexQueue&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 08:31:15 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2021-03-17T08:31:15Z</dc:date>
    <item>
      <title>How do i index only specific lines from my log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-index-only-specific-lines-from-my-log-file/m-p/544127#M90818</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the&amp;nbsp; log file,i need to search the part of line in bold(which as only&amp;nbsp;&lt;STRONG&gt;EmployeeServices/com)&lt;/STRONG&gt; and index only that whole line in my index?&lt;/P&gt;&lt;P&gt;How do i write regex to capture only the lines in bold?please help me with props.conf and transform.con&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-index-only-specific-lines-from-my-log-file/m-p/544127#M90818</guid>
      <dc:creator>Ashwini008</dc:creator>
      <dc:date>2021-03-17T10:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do i index only specific lines from my log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-i-index-only-specific-lines-from-my-log-file/m-p/544128#M90819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222977"&gt;@Ashwini008&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;one quick question: is each row a separate event or a part of an event that contains all the rows?&lt;/P&gt;&lt;P&gt;If each row is an event, you can discard the other rows following the steps at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest," target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest,&lt;/A&gt;&amp;nbsp;in few words, you have to configure your props.conf and tranforms.conf on your Indexers or (if present) Heavy Forwarders adding the following rows in an App:&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 = EmployeeServices\/com\)
DEST_KEY = queue
FORMAT = indexQueue&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:31:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-i-index-only-specific-lines-from-my-log-file/m-p/544128#M90819</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-17T08:31:15Z</dc:date>
    </item>
  </channel>
</rss>

