<?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: Why is the sourcetype not being considered? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580945#M102458</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;That did the trick.&amp;nbsp; Thanks Rich, appreciate your expert support as always &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 13:33:36 GMT</pubDate>
    <dc:creator>andrewtrobec</dc:creator>
    <dc:date>2022-01-13T13:33:36Z</dc:date>
    <item>
      <title>Why is the sourcetype not being considered?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580847#M102438</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a really simple unix based shell script that returns info about the httpd (Apache) service.&amp;nbsp; The script is encapsulated in an input, so the printf statement becomes the event.&amp;nbsp; Each event is one line only.&lt;/P&gt;&lt;P&gt;Here is an indexed event coming from the UF (with highlights that I will explain successively):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17541i1DEF8581B58FE990/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue.png" alt="issue.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For some reason the sourcetype is not working since _time is not what I specify, rather it is half from the field I want (timestamp in green) and half some text in the payload that i do not want (date in red).&lt;/P&gt;&lt;P&gt;The sourcetype is currently this (it has gone through many evolutions):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[linux:httpdinfo]
SHOULD_LINEMERGE = false
KV_MODE = auto
MAX_TIMESTAMP_LOOKAHEAD = 30
TIME_FORMAT = %Y-%m-%d %H:%M:%S %z&lt;/LI-CODE&gt;&lt;P&gt;No matter what I try I cannot seem to get it to work.&lt;/P&gt;&lt;P&gt;Could somebody give me a push in the right direction?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 19:46:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580847#M102438</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2022-01-12T19:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the sourcetype not being considered?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580849#M102440</link>
      <description>&lt;P&gt;Is the sourcetype set correctly in inputs.conf?&lt;/P&gt;&lt;P&gt;Try this props.conf settings:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[linux:httpdinfo]
SHOULD_LINEMERGE = false
KV_MODE = auto
MAX_TIMESTAMP_LOOKAHEAD = 30
TIME_PREFIX = date="
TIME_FORMAT = %Y-%m-%d %H:%M:%S %z&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Jan 2022 20:31:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580849#M102440</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-12T20:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the sourcetype not being considered?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580932#M102453</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;Thanks for taking the time, hope you're well!&lt;/P&gt;&lt;P&gt;Unfortunately the suggestion does not work.&amp;nbsp; It continues to index as before.&amp;nbsp; Here is a tabled output with the indextime as well (timezone gets localized, I am on CET while raw is UTC):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17547iB7C41A1A989ECFB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Potentially useful info: the sourcetype is defined in the props.conf belonging to the app that has been deployed to UF via DS.&amp;nbsp; It is not defined anywhere on the indexer that receives the data.&amp;nbsp; This same app contains the shell script as well as inputs.conf.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 12:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580932#M102453</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2022-01-13T12:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the sourcetype not being considered?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580938#M102456</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203131"&gt;@andrewtrobec&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Potentially useful info: the sourcetype is defined in the props.conf belonging to the app that has been deployed to UF via DS.&amp;nbsp; It is not defined anywhere on the indexer that receives the data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;There's the problem.&amp;nbsp; The props.conf settings must be on the indexer because it is there that timestamp extraction is done.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 12:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580938#M102456</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-13T12:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the sourcetype not being considered?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580945#M102458</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;That did the trick.&amp;nbsp; Thanks Rich, appreciate your expert support as always &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 13:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-sourcetype-not-being-considered/m-p/580945#M102458</guid>
      <dc:creator>andrewtrobec</dc:creator>
      <dc:date>2022-01-13T13:33:36Z</dc:date>
    </item>
  </channel>
</rss>

