<?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: dynamic sourcetypes - can splunk do this? (and I'll be impressed if it can) in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132350#M7825</link>
    <description>&lt;P&gt;Good stuff, both useful.  I'll try them out.  &lt;/P&gt;</description>
    <pubDate>Fri, 06 Feb 2015 16:34:55 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2015-02-06T16:34:55Z</dc:date>
    <item>
      <title>dynamic sourcetypes - can splunk do this? (and I'll be impressed if it can)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132347#M7822</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a request to monitor a directory, with dynamic logfiles.  Sometimes they are there, sometimes the customer will create new ones....   They have validated that the logfiles all follow the same format.  Is it possible for splunk to create a sourcetype based upon the name of the file?  They all follow the format SERVICE_PID.log.   I could create one based upon the directory name, but they would rather use separate sourcetypes, if possible, for easier analysis and reporting.  &lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 14:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132347#M7822</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-02-06T14:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic sourcetypes - can splunk do this? (and I'll be impressed if it can)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132348#M7823</link>
      <description>&lt;P&gt;Hi a212830,&lt;/P&gt;

&lt;P&gt;Yes it can &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; You will need to specify this in your props/transforms files any where parsing/indexing is being performed.&lt;/P&gt;

&lt;P&gt;props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...regex_to_match_filename] 
TRANSFORMS-fs = force-sourcetype-st
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[force-sourcetype-st] 
DEST_KEY = MetaData::Sourcetype 
SOURCE_KEY = MetaData::Source 
REGEX = YOUR_REGEX_TO_PULL_THE_FILENAME 
FORMAT = sourcetype::$1 
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 14:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132348#M7823</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-02-06T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic sourcetypes - can splunk do this? (and I'll be impressed if it can)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132349#M7824</link>
      <description>&lt;P&gt;Source type is set at index time so do not think this is possible.  I had a similar issue and I used the same source type for everything but added a new filed based on the file source called 'logname'.   This is a search time approach and has been working fine.  &lt;/P&gt;

&lt;P&gt;You could use a transform at index time to add the 'logname'  as metadata if needed.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 14:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132349#M7824</guid>
      <dc:creator>thomrs</dc:creator>
      <dc:date>2015-02-06T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic sourcetypes - can splunk do this? (and I'll be impressed if it can)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132350#M7825</link>
      <description>&lt;P&gt;Good stuff, both useful.  I'll try them out.  &lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 16:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132350#M7825</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-02-06T16:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic sourcetypes - can splunk do this? (and I'll be impressed if it can)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132351#M7826</link>
      <description>&lt;P&gt;I was wrong you can do this with an index time transform.  I always stay away from doing that, i never want to change the raw data,&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 17:17:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132351#M7826</guid>
      <dc:creator>thomrs</dc:creator>
      <dc:date>2015-02-06T17:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic sourcetypes - can splunk do this? (and I'll be impressed if it can)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132352#M7827</link>
      <description>&lt;P&gt;Good one! Knowing his weakness, is a way to strength .... or something like that ..... Yoda would said have &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 19:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dynamic-sourcetypes-can-splunk-do-this-and-I-ll-be-impressed-if/m-p/132352#M7827</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-02-06T19:30:13Z</dc:date>
    </item>
  </channel>
</rss>

