<?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 Filter a specific field from event - in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/606654#M13422</link>
    <description>&lt;P&gt;Since this output is clearly from some solution external to splunk, the question is whether you're preparing to ingest that data to splunk or do you have it already ingested in splunk in some form. If it's not yet ingested, will you be getting that as a file, events over syslog, any other way?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 12:28:55 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-07-22T12:28:55Z</dc:date>
    <item>
      <title>How to Filter a specific field from event -</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/605998#M13363</link>
      <description>&lt;P&gt;I have a&amp;nbsp; file which gives me the following output :-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;srvrmgr&amp;gt; list comps SHOW SV_NAME,CP_DISP_RUN_STATE,CP_STARTMODE,CP_NUM_RUN_TASKS,CP_MAX_TASKS,CP_ACTV_MTS_PROCS,CP_MAX_MTS_PROCS,CP_START_TIME,CP_END_TIME,CC_ALIAS&lt;/P&gt;
&lt;P&gt;SV_NAME CP_DISP_RUN_STATE CP_STARTMODE CP_NUM_RUN_TASKS CP_MAX_TASKS CP_ACTV_MTS_PROCS CP_MAX_MTS_PROCS CP_START_TIME CP_END_TIME CC_ALIAS&lt;BR /&gt;&lt;BR /&gt;-------- ------------------- ------------ ---------------- ------------ ----------------- ---------------- ------------------- ------------------- ---------------&lt;BR /&gt;---------&lt;BR /&gt;lnx001 Online Auto 0 50 1 1 2022-07-18 03:53:03 comp_123 comp_123&lt;BR /&gt;lnx003 Online Auto 0 50 1 1 2022-07-18 03:53:03 comp_456 comp_123&lt;BR /&gt;lnx005 Online Auto 0 20 1 1 2022-07-18 03:53:03 comp_123 comp_123&lt;BR /&gt;lnx007 Online Manual 0 50 0 1 2022-07-18 03:53:03 comp_987&lt;BR /&gt;lnx010 Online Manual 0 500 0 5 2022-07-18 03:53:03 comp_564&lt;BR /&gt;lnx011 Online Auto 643 4000 40 40 2022-07-18 03:53:03 comp_123&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only want to extract the 1st,4th(numeric) and where comp_name=comp_123, discarding all the other entries and show 1st field as host, 4th field as runningtasks and final field as component.. Please help me with the filters&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/605998#M13363</guid>
      <dc:creator>Learnme_007</dc:creator>
      <dc:date>2022-07-18T14:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a specific field from event -</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/606001#M13364</link>
      <description>&lt;P&gt;Do you want to filter at index time or search time?&amp;nbsp; What have you tried so far?&amp;nbsp; Please share the inputs.conf and props.conf stanzas for the file.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/606001#M13364</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-18T14:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter a specific field from event -</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/606644#M13420</link>
      <description>&lt;P&gt;&lt;SPAN&gt;lnx001 Online Auto 1 50 1 1 2022-07-18 03:53:03 comp_123 comp_123&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lnx003 Online Auto 1 50 1 1 2022-07-18 03:53:03 comp_456 comp_123&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lnx005 Online Auto 1 20 1 1 2022-07-18 03:53:03 comp_123 comp_123&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lnx007 Online Manual 1 50 0 1 2022-07-18 03:53:03 comp_987&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lnx010 Online Manual 1 500 0 5 2022-07-18 03:53:03 comp_564&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lnx011 Online Auto 643 4000 40 40 2022-07-18 03:53:03 comp_123&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to extract the field post Auto, which shows numeric 1(the numeric value can vary from 1-20). there are multiple fields with numeric 1 or anything in between 1-99 other than this field. As of now I tried this, but this shows all the fields which starts with 1 or any other numeric which has a space before and after the character. it also matches anything starting from 1-99&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;\s\d{1,2}\s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 10:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/606644#M13420</guid>
      <dc:creator>Learnme_007</dc:creator>
      <dc:date>2022-07-22T10:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter a specific field from event -</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/606650#M13421</link>
      <description>&lt;P&gt;You haven't answered my questions.&lt;/P&gt;&lt;P&gt;Do you want to filter at index time or at search time?&lt;/P&gt;&lt;P&gt;The original posting asked about extracting 3 fields, but this reply asked only for the field after Auto.&amp;nbsp; Which is desired?&amp;nbsp; Is the field after Manual to be extracted or ignored?&lt;/P&gt;&lt;P&gt;Which "comp_123" value is the comp_name field?&amp;nbsp; Some events have 2 comp_* fields.&lt;/P&gt;&lt;P&gt;To get the field after Auto, try &lt;FONT face="courier new,courier"&gt;Auto\s\d+&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 12:01:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/606650#M13421</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-22T12:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter a specific field from event -</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/606654#M13422</link>
      <description>&lt;P&gt;Since this output is clearly from some solution external to splunk, the question is whether you're preparing to ingest that data to splunk or do you have it already ingested in splunk in some form. If it's not yet ingested, will you be getting that as a file, events over syslog, any other way?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 12:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-Filter-a-specific-field-from-event/m-p/606654#M13422</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-07-22T12:28:55Z</dc:date>
    </item>
  </channel>
</rss>

