<?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: filter data by source field wildcard in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557821#M92313</link>
    <description>&lt;P&gt;I'm still getting results...&lt;/P&gt;&lt;P&gt;any ideas why?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 14:21:58 GMT</pubDate>
    <dc:creator>Shakira1</dc:creator>
    <dc:date>2021-06-30T14:21:58Z</dc:date>
    <item>
      <title>filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557573#M92274</link>
      <description>&lt;P&gt;I've use case that I need to filter data by source&amp;nbsp;field, that always changes.&lt;/P&gt;&lt;P&gt;in the transforms.conf I use:&lt;/P&gt;&lt;P&gt;[foo]&lt;BR /&gt;REGEX = MY REGEX&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the props.conf I use:&lt;/P&gt;&lt;P&gt;[source::process_events]&lt;BR /&gt;TRANSFORMS-01= foo&lt;/P&gt;&lt;P&gt;The source&amp;nbsp;always contains&amp;nbsp;process_events and there is more data like date and info that changed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;any way its possible to filter data by source wildcard?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 09:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557573#M92274</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2021-06-29T09:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557574#M92275</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235891"&gt;@Shakira1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i understand correctly you have source= &amp;lt;values&amp;gt; having multiple combinations which you want to use in props.conf the source might always contains process_events?&lt;/P&gt;&lt;P&gt;Example. process_events_26062021,&amp;nbsp;&amp;nbsp;process_events_27062021, log_process_events_26062021&lt;/P&gt;&lt;P&gt;It is possible to match them using Regex style-&amp;nbsp;&lt;/P&gt;&lt;P&gt;#your props.conf can be -&amp;nbsp;&lt;/P&gt;&lt;P&gt;[source::&amp;lt;regex&amp;gt;]&amp;nbsp;&lt;/P&gt;&lt;P&gt;TRANSFORMS-01= foo&lt;/P&gt;&lt;P&gt;Docs says , - Refer -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/PropsConf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/PropsConf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;When setting a [&amp;lt;spec&amp;gt;] stanza, you can use the following regex-type syntax:
... recurses through directories until the match is met
    or equivalently, matches any number of characters.
*   matches anything but the path separator 0 or more times.
    The path separator is '/' on unix, or '\' on Windows.
    Intended to match a partial or complete directory or filename.
|   is equivalent to 'or'
( ) are used to limit scope of |.
\\ = matches a literal backslash '\'.

Example: [source::....(?&amp;lt;!tar.)(gz|bz2)]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept Solution if it helps!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 10:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557574#M92275</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-29T10:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557579#M92276</link>
      <description>&lt;P&gt;which mean I can use&amp;nbsp;&lt;/P&gt;&lt;P&gt;[source::.*process_events.*] and it's should be working?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 10:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557579#M92276</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2021-06-29T10:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557580#M92277</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235891"&gt;@Shakira1&lt;/a&gt;&amp;nbsp;how is your complete source looks like, if you have /\ in source that might not work.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 10:42:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557580#M92277</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-29T10:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557581#M92278</link>
      <description>&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.sec.wixprod.net/en-US/app/search/search?q=search%20index%3D%22uptycs%22%20source%3D%22*process_events*%22%20%22%2Fopt%2Fchef%2Fembedded%2Fbin%2Fruby%22&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-15m&amp;amp;latest=now&amp;amp;sid=1624957712.254324_D29D7922-659A-429B-9B06-0B1715B3CC41#" target="_blank" rel="noopener"&gt;s3://XXXXprocess_events/upt_day=20210627/part-00053-a08c751e-1c05-4725-bdea-740009db640e.c000.json.gz&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 10:45:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557581#M92278</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2021-06-29T10:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557584#M92279</link>
      <description>&lt;P&gt;for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.sec.wixprod.net/en-US/app/search/search?q=search%20index%3D%22uptycs%22%20source%3D%22*process_events*%22%20%22%2Fopt%2Fchef%2Fembedded%2Fbin%2Fruby%22&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-15m&amp;amp;latest=now&amp;amp;sid=1624957712.254324_D29D7922-659A-429B-9B06-0B1715B3CC41#" target="_blank" rel="noopener nofollow noreferrer"&gt;s3://XXXXprocess_events/upt_day=20210627/part-00053-a08c751e-1c05-4725-bdea-740009db640e.c000.json.g...&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 10:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557584#M92279</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2021-06-29T10:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557589#M92280</link>
      <description>&lt;P&gt;I still need your help pls.&lt;/P&gt;&lt;P&gt;its not working..&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 11:52:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557589#M92280</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2021-06-29T11:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557702#M92300</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235891"&gt;@Shakira1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try this props.conf&lt;/P&gt;&lt;P&gt;[source::s3:\/\/*process_events...]&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept Solution if it helps!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 21:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557702#M92300</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-29T21:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557821#M92313</link>
      <description>&lt;P&gt;I'm still getting results...&lt;/P&gt;&lt;P&gt;any ideas why?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557821#M92313</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2021-06-30T14:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557921#M92328</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235891"&gt;@Shakira1&lt;/a&gt;&amp;nbsp;REGEX in your transforms conf might be not correct. Can you share sample event and your transforms, props config?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 21:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/557921#M92328</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-30T21:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/558024#M92336</link>
      <description>&lt;P&gt;I can't share sample because it's with PII.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but what I want to exclude is some path in the raw data&amp;nbsp;&lt;/P&gt;&lt;P&gt;[foo]&lt;/P&gt;&lt;P&gt;so I just put the regex like that: XXX\/XXX\/XXX\/XXXX&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the props.conf I just add: TRANSFORMS = foo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 12:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/558024#M92336</guid>
      <dc:creator>Shakira1</dc:creator>
      <dc:date>2021-07-01T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: filter data by source field wildcard</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/558083#M92340</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235891"&gt;@Shakira1&lt;/a&gt;&amp;nbsp; can you try this, REGEX matches 4 segment dir structure in your _raw event. The following conf shall be deployed to HF/indexers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# props.conf
[source::s3:\/\/*process_events...]
TRANSFORMS-nullq = sendtonull

#transforms.conf
[sendtonull]
REGEX = [\w-]+\/[\w-]+\/[\w-]+\/[\w-]+
FORMAT = nullQueue
DEST_KEY = queue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if it helps!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 05:24:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filter-data-by-source-field-wildcard/m-p/558083#M92340</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-02T05:24:40Z</dc:date>
    </item>
  </channel>
</rss>

