<?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: Forwarding profiles - how to in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-profiles-how-to/m-p/28635#M4885</link>
    <description>&lt;P&gt;You might want to set the monitor to /opt/*.log or a similar expression matching all your log files, and then whitelisting (or blacklisting) your way towards the correct set of files.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2013 19:55:27 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-02-12T19:55:27Z</dc:date>
    <item>
      <title>Forwarding profiles - how to</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-profiles-how-to/m-p/28633#M4883</link>
      <description>&lt;P&gt;Is there any way to set up profiles for commonly forwarded logs? I see:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/WAS/latest/User/logdata"&gt;http://docs.splunk.com/Documentation/WAS/latest/User/logdata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;details logs. Is there any way I can set up a profile from the indexer to grab all the SystemErr.log, SystemOut.logs from app servers?&lt;/P&gt;

&lt;P&gt;BTW, I'm running Splunk 5.0.2 on Red Hat 6.3. I have 2 indexers that are replicating, two search heads, and one master. Perhaps 80 devices are forwarding to the indexers.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 15:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-profiles-how-to/m-p/28633#M4883</guid>
      <dc:creator>hokie1999</dc:creator>
      <dc:date>2013-02-12T15:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding profiles - how to</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-profiles-how-to/m-p/28634#M4884</link>
      <description>&lt;P&gt;Follow up question. Let's say I want to monitor three files, /opt/a.log, /opt/b.log, /opt/c.log&lt;/P&gt;

&lt;P&gt;What would the [monitor://xxxx] statement in inputs.conf look like? Could I do this:&lt;/P&gt;

&lt;P&gt;[monitor:///opt/a.log,/opt/b.log,/opt/c.log]&lt;/P&gt;

&lt;P&gt;or does it have to be&lt;/P&gt;

&lt;P&gt;[monitor:///opt/a.log]&lt;BR /&gt;
[moniotr:///opt/b.log]&lt;BR /&gt;
[monitor:///opt/c.log]&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 17:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-profiles-how-to/m-p/28634#M4884</guid>
      <dc:creator>hokie1999</dc:creator>
      <dc:date>2013-02-12T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding profiles - how to</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-profiles-how-to/m-p/28635#M4885</link>
      <description>&lt;P&gt;You might want to set the monitor to /opt/*.log or a similar expression matching all your log files, and then whitelisting (or blacklisting) your way towards the correct set of files.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 19:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-profiles-how-to/m-p/28635#M4885</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-12T19:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding profiles - how to</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-profiles-how-to/m-p/28636#M4886</link>
      <description>&lt;P&gt;Thanks for the answer. What I wound up doing was adding lines to my expect script like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    expect "]#" { send "find /opt/IBM -name 'SystemErr.log' &amp;gt; $tempfile\r" }
    expect "]#" { send "find /opt/IBM -name 'SystemOut.log' &amp;gt;&amp;gt; $tempfile\r" }
    expect "]#" { send "find /opt/IBM -name 'trace.log' &amp;gt;&amp;gt; $tempfile\r" }
    expect "]#" { send "sed -i 's/^/\[monitor\:\\/\\//' $tempfile\r" }
    expect "]#" { send "sed -i 's/$/\]/' $tempfile\r" }
    expect "]#" { send "cat $tempfile &amp;gt;&amp;gt; $inputfile\r" }
    expect "]#" { send "/opt/splunkforwarder/bin/splunk restart\r" }
    expect "]#" { send "ps -ef | grep splunk\r" }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where $inputfile is /opt/splunkforwarder/etc/system/local/inputs.conf&lt;/P&gt;

&lt;P&gt;This produces output like this in the inputs.conf file:&lt;/P&gt;

&lt;P&gt;[monitor:///var/log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/BUSILABDE.Messaging.ddcwesbn2-WESBIlabNode02.0/SystemErr.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/nodeagent/SystemErr.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/BUSILABDE.WebApp.ddcwesbn2-WESBIlabNode02.0/SystemErr.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/WESBIlabNode02_proxy/SystemErr.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/BUSILABDE.AppTarget.ddcwesbn2-WESBIlabNode02.0/SystemErr.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/BUSILABDE.Support.ddcwesbn2-WESBIlabNode02.0/SystemErr.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/BUSILABDE.Messaging.ddcwesbn2-WESBIlabNode02.0/SystemOut.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/nodeagent/SystemOut.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/BUSILABDE.WebApp.ddcwesbn2-WESBIlabNode02.0/SystemOut.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/WESBIlabNode02_proxy/SystemOut.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/BUSILABDE.AppTarget.ddcwesbn2-WESBIlabNode02.0/SystemOut.log]&lt;BR /&gt;
[monitor:///opt/IBM/WebSphere/WesbServer/profiles/WESBIlabNode02/logs/BUSILABDE.Support.ddcwesbn2-WESBIlabNode02.0/SystemOut.log]&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 20:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-profiles-how-to/m-p/28636#M4886</guid>
      <dc:creator>hokie1999</dc:creator>
      <dc:date>2013-02-12T20:35:18Z</dc:date>
    </item>
  </channel>
</rss>

