<?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 how to get fifo to be sourceType=syslog? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-fifo-to-be-sourceType-syslog/m-p/17231#M2164</link>
    <description>&lt;P&gt;Greetings experts,&lt;/P&gt;

&lt;P&gt;I am using syslog-ng and Splunk on the same box. I have configure syslog-ng to pipe the incoming syslogs to a FIFO and get Splunk to read the FIFO.&lt;/P&gt;

&lt;P&gt;Splunk can read and index the FIFO fine but the sourceType is unkown and I am trying to get Splunk to recognize the data as sourceType syslog.&lt;/P&gt;

&lt;P&gt;Can this be done? What needs to be modified?&lt;/P&gt;

&lt;P&gt;I have tried to configure the /$SPLUNK_HOME/etc/modules/input/FIFO/config.xml file but this did not seem to get the sourceType changed.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Bear&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2010 23:46:13 GMT</pubDate>
    <dc:creator>bbear</dc:creator>
    <dc:date>2010-07-12T23:46:13Z</dc:date>
    <item>
      <title>how to get fifo to be sourceType=syslog?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-fifo-to-be-sourceType-syslog/m-p/17231#M2164</link>
      <description>&lt;P&gt;Greetings experts,&lt;/P&gt;

&lt;P&gt;I am using syslog-ng and Splunk on the same box. I have configure syslog-ng to pipe the incoming syslogs to a FIFO and get Splunk to read the FIFO.&lt;/P&gt;

&lt;P&gt;Splunk can read and index the FIFO fine but the sourceType is unkown and I am trying to get Splunk to recognize the data as sourceType syslog.&lt;/P&gt;

&lt;P&gt;Can this be done? What needs to be modified?&lt;/P&gt;

&lt;P&gt;I have tried to configure the /$SPLUNK_HOME/etc/modules/input/FIFO/config.xml file but this did not seem to get the sourceType changed.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Bear&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2010 23:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-fifo-to-be-sourceType-syslog/m-p/17231#M2164</guid>
      <dc:creator>bbear</dc:creator>
      <dc:date>2010-07-12T23:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to get fifo to be sourceType=syslog?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-fifo-to-be-sourceType-syslog/m-p/17232#M2165</link>
      <description>&lt;P&gt;OK, I figured it out.&lt;/P&gt;

&lt;P&gt;I needed to add the sourcetype = syslog to my inputs.conf file under the fifo config.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2010 00:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-fifo-to-be-sourceType-syslog/m-p/17232#M2165</guid>
      <dc:creator>bbear</dc:creator>
      <dc:date>2010-07-13T00:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to get fifo to be sourceType=syslog?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-fifo-to-be-sourceType-syslog/m-p/17233#M2166</link>
      <description>&lt;P&gt;A couple of things to point out.  (This may vary slightly based on splunk version)&lt;/P&gt;

&lt;P&gt;I don't think you should ever have to mess with the &lt;CODE&gt;etc/modules/...&lt;/CODE&gt; folder so I would recommend undoing any changes you made there.&lt;/P&gt;

&lt;P&gt;To set the sourcetype, you should be able to simply set the "sourcetype" parameter in your input stanza.  So your &lt;CODE&gt;inputs.conf&lt;/CODE&gt; entry should look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fifo:///var/path/to/fifo]
sourcetype = syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I should point out that splunk does not recommend the usage of fifo anymore.  So I would suggest either (1) use syslog-ng to write to files and have splunk pick up those files, this has the advantage of protecting you against losing events whenever &lt;CODE&gt;splunkd&lt;/CODE&gt; is restarted, or (2) if short outages (due to restarts) are not a problem for you then you can configure splunk to listen on a TCP (or UDP) port and have syslog-ng forward your events to that port.  (You would use the same &lt;CODE&gt;sourcetype=syslog&lt;/CODE&gt; option for that input as well.)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2010 00:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-fifo-to-be-sourceType-syslog/m-p/17233#M2166</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-07-13T00:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to get fifo to be sourceType=syslog?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-get-fifo-to-be-sourceType-syslog/m-p/17234#M2167</link>
      <description>&lt;P&gt;Thanks for the help and advice.&lt;BR /&gt;
I am experimenting with what is easiest and best so I removed the FIFO and went back to reading the udp port.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2010 01:21:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-get-fifo-to-be-sourceType-syslog/m-p/17234#M2167</guid>
      <dc:creator>bbear</dc:creator>
      <dc:date>2010-07-15T01:21:34Z</dc:date>
    </item>
  </channel>
</rss>

