<?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 configure props.conf  to set specific Datetime-configs on specific sources/sourcetypes from specific hosts? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-set-specific-Datetime-configs-on/m-p/239700#M46585</link>
    <description>&lt;P&gt;This is what I would do:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;For those servers that have an issue modify your inputs.conf and rename the sourcetype on those stanzas currently reading your WebSphere logs to something like: MyPreviousSourceTypeName-Host1 and MyPreviousSourceTypeName-Host2&lt;/LI&gt;
&lt;LI&gt;Use the new sourcetypes to filter out in your next hop (heavy forwarder or indexer) and do two things: apply the time configurations you want to apply and rename the sourcetype back to whatever it was before.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Let me know if that makes sense.&lt;/P&gt;

&lt;P&gt;Some quick instructions on how to rename a sourcetype before indexing:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MyPreviousSourceTypeName-Host1]
TRANSFORMS-wrongTimeSourcetypeFix1 = set_sourcetype_back_WebSphere

[MyPreviousSourceTypeName-Host2]
TRANSFORMS-wrongTimeSourcetypeFix2 = set_sourcetype_back_WebSphere
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;tranforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[set_sourcetype_back_WebSphere] 
FORMAT= sourcetype::MyPreviousSourceTypeName
DEST_KEY = MetaData:Sourcetype 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Jan 2016 14:00:23 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2016-01-21T14:00:23Z</dc:date>
    <item>
      <title>How to configure props.conf  to set specific Datetime-configs on specific sources/sourcetypes from specific hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-set-specific-Datetime-configs-on/m-p/239699#M46584</link>
      <description>&lt;P&gt;I have an issue with two servers with WebSphere logs that have an overriding different timezone setting in the jvm. Other servers don't have an issue. To prevent wrong interpretation of timestamps, I want to add to the props.conf something like:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;using specific hosts [host::server1|server2] ór based on the logfile [source::/opt/data/WebSphere/logs/log.log]&lt;/LI&gt;
&lt;LI&gt;DATETIME_CONFIG=NONE&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;But you can't of course somehow filter host AND source/sourcetype. Using only host would make other (performance/OS) events useless and unreliable; using only source would affect all the other logfiles from multiple other servers. &lt;/P&gt;

&lt;P&gt;It's not only datetime related; I also'd like to be able to break_only_before/after some logfiles from specific host (think like, some end with &amp;lt;END&amp;gt;, other must be broken before datetime)&lt;/P&gt;

&lt;P&gt;So in general is the question: how can you use some local props.conf settings for specific sources/sourcetypes on specific hosts? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-set-specific-Datetime-configs-on/m-p/239699#M46584</guid>
      <dc:creator>tweaktubbie</dc:creator>
      <dc:date>2020-09-29T08:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf  to set specific Datetime-configs on specific sources/sourcetypes from specific hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-set-specific-Datetime-configs-on/m-p/239700#M46585</link>
      <description>&lt;P&gt;This is what I would do:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;For those servers that have an issue modify your inputs.conf and rename the sourcetype on those stanzas currently reading your WebSphere logs to something like: MyPreviousSourceTypeName-Host1 and MyPreviousSourceTypeName-Host2&lt;/LI&gt;
&lt;LI&gt;Use the new sourcetypes to filter out in your next hop (heavy forwarder or indexer) and do two things: apply the time configurations you want to apply and rename the sourcetype back to whatever it was before.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Let me know if that makes sense.&lt;/P&gt;

&lt;P&gt;Some quick instructions on how to rename a sourcetype before indexing:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MyPreviousSourceTypeName-Host1]
TRANSFORMS-wrongTimeSourcetypeFix1 = set_sourcetype_back_WebSphere

[MyPreviousSourceTypeName-Host2]
TRANSFORMS-wrongTimeSourcetypeFix2 = set_sourcetype_back_WebSphere
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;tranforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[set_sourcetype_back_WebSphere] 
FORMAT= sourcetype::MyPreviousSourceTypeName
DEST_KEY = MetaData:Sourcetype 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jan 2016 14:00:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-set-specific-Datetime-configs-on/m-p/239700#M46585</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-21T14:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf  to set specific Datetime-configs on specific sources/sourcetypes from specific hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-set-specific-Datetime-configs-on/m-p/239701#M46586</link>
      <description>&lt;P&gt;Ah, that indeed is a nice approach I hadn't thought of, also handy for other purposes!&lt;/P&gt;

&lt;P&gt;Only one thing I forgot to mention which now comes to mind: I use a deployment server to use a generic configuration on all WebSphere servers. From what I read, precedence should work fine with your solution, if the default etc/apps/websphere app is overruled by inputs.conf with an alternative sourcetype in an app in /etc/apps/(anything starting with a-v) configured.&lt;/P&gt;

&lt;P&gt;Thanks a lot for thinking along!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 10:49:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-set-specific-Datetime-configs-on/m-p/239701#M46586</guid>
      <dc:creator>tweaktubbie</dc:creator>
      <dc:date>2016-01-22T10:49:04Z</dc:date>
    </item>
  </channel>
</rss>

