<?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 add data from the Linux machines to Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-data-from-the-Linux-machines-to-Splunk/m-p/588459#M103285</link>
    <description>&lt;P&gt;hi all,&lt;/P&gt;
&lt;P&gt;I'm completely new to Splunk and have some problems understanding the dataflow and what to configure where.&lt;BR /&gt;i have here a working environment with 2 indexers, 1 heavy forwarder which is the search head too. all running version 7.3.6 on ubuntu 20.04. additionally there a several dozen windows servers and ~50 linux servers. a lot of them have splunkforwarder installed and send data to the indexers. this was set up some years ago by some guys that left the company meanwhile.&lt;BR /&gt;my task now is to add data from the linux machines to splunk. as i have a working environment and a lot of stuff to see how it's done on other machines, it didn't sound too complicated. but...&lt;/P&gt;
&lt;P&gt;the task: have on all linux servers the same task running which creates a log file in /var/log/&lt;BR /&gt;my solution: on a server that already sends data to splunk, i ran: &lt;STRONG&gt;splunk add monitor /var/log/mylog&lt;/STRONG&gt;&lt;BR /&gt;the result: the data shows up in splunk. yepeee. easy.&lt;BR /&gt;then i went to a server that does not send data to splunk.&lt;BR /&gt;my solution: download and install splunkforwarder-7.3.6-47d8552a4d84-linux-2.6-amd64.deb&lt;BR /&gt;&lt;STRONG&gt;splunk add forward-server indexer1:9997&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;splunk add forward-server indexer2:9997&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;splunk add monitor /var/log/mylog&lt;/STRONG&gt;&lt;BR /&gt;yepee. data shows up on the search head&lt;/P&gt;
&lt;P&gt;next task: have a dashboard with the data and have some filter options&lt;BR /&gt;my solution: found a similar dashboard and tried to adopt it to my needs. not that easy, but i get it done. without the filters first.&lt;BR /&gt;and then the problems start: the logfile contains headers and lots of other junk i cannot filter out easily. during my search on how to delete events, i found out that i have multiline events. i learned about LINE_BREAKER and&amp;nbsp;SHOULD_LINEMERGE and indexes and other config stuff.&lt;/P&gt;
&lt;P&gt;and here the confusion starts: where do i have to configure what?&amp;nbsp;&lt;BR /&gt;after reading some docs and different solutions here in the forum, i decided to start from zero with one of the linux servers. i deleted the results from this server from the main index.&lt;BR /&gt;&lt;STRONG&gt;source=/var/log/mylog myserver | delete&lt;BR /&gt;&lt;/STRONG&gt;removed the forwarders and monitor from the linux server&lt;BR /&gt;&lt;STRONG&gt;splunk remove forward-server indexer1:9997&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;splunk remove forward-server indexer2:9997&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;splunk remove monitor /var/log/mylog&lt;/STRONG&gt;&lt;BR /&gt;i created a new index on the 2 indexers and on the search head with the GUI. lets call it myindex and i didn't change the defaults&lt;BR /&gt;i modified &lt;STRONG&gt;etc/users/admin/myapp/local/props.conf&lt;/STRONG&gt; file on the search head, because that was the only place where i could find a reference to the monitor i've added.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[mylog-too_small]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SHOULD_LINEMERGE = false&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;[mylog]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SHOULD_LINEMERGE = false&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LINE_BREAKER = ([\r\n]+)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;adding forwarders and monitor again:&lt;BR /&gt;&lt;STRONG&gt;splunk add forward-server indexer1:9997&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;splunk add forward-server indexer2:9997&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;splunk add monitor /var/log/mylog&lt;/STRONG&gt;&lt;BR /&gt;What the heck? no data shows up on the search head&lt;/P&gt;
&lt;P&gt;What have I missed where?&lt;BR /&gt;and in what order are all these props.conf files applied?&lt;BR /&gt;I have some of them in different folders&lt;/P&gt;
&lt;P&gt;any help or hint is welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 16:45:16 GMT</pubDate>
    <dc:creator>pbnl</dc:creator>
    <dc:date>2022-03-10T16:45:16Z</dc:date>
    <item>
      <title>How to add data from the Linux machines to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-data-from-the-Linux-machines-to-Splunk/m-p/588459#M103285</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;
&lt;P&gt;I'm completely new to Splunk and have some problems understanding the dataflow and what to configure where.&lt;BR /&gt;i have here a working environment with 2 indexers, 1 heavy forwarder which is the search head too. all running version 7.3.6 on ubuntu 20.04. additionally there a several dozen windows servers and ~50 linux servers. a lot of them have splunkforwarder installed and send data to the indexers. this was set up some years ago by some guys that left the company meanwhile.&lt;BR /&gt;my task now is to add data from the linux machines to splunk. as i have a working environment and a lot of stuff to see how it's done on other machines, it didn't sound too complicated. but...&lt;/P&gt;
&lt;P&gt;the task: have on all linux servers the same task running which creates a log file in /var/log/&lt;BR /&gt;my solution: on a server that already sends data to splunk, i ran: &lt;STRONG&gt;splunk add monitor /var/log/mylog&lt;/STRONG&gt;&lt;BR /&gt;the result: the data shows up in splunk. yepeee. easy.&lt;BR /&gt;then i went to a server that does not send data to splunk.&lt;BR /&gt;my solution: download and install splunkforwarder-7.3.6-47d8552a4d84-linux-2.6-amd64.deb&lt;BR /&gt;&lt;STRONG&gt;splunk add forward-server indexer1:9997&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;splunk add forward-server indexer2:9997&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;splunk add monitor /var/log/mylog&lt;/STRONG&gt;&lt;BR /&gt;yepee. data shows up on the search head&lt;/P&gt;
&lt;P&gt;next task: have a dashboard with the data and have some filter options&lt;BR /&gt;my solution: found a similar dashboard and tried to adopt it to my needs. not that easy, but i get it done. without the filters first.&lt;BR /&gt;and then the problems start: the logfile contains headers and lots of other junk i cannot filter out easily. during my search on how to delete events, i found out that i have multiline events. i learned about LINE_BREAKER and&amp;nbsp;SHOULD_LINEMERGE and indexes and other config stuff.&lt;/P&gt;
&lt;P&gt;and here the confusion starts: where do i have to configure what?&amp;nbsp;&lt;BR /&gt;after reading some docs and different solutions here in the forum, i decided to start from zero with one of the linux servers. i deleted the results from this server from the main index.&lt;BR /&gt;&lt;STRONG&gt;source=/var/log/mylog myserver | delete&lt;BR /&gt;&lt;/STRONG&gt;removed the forwarders and monitor from the linux server&lt;BR /&gt;&lt;STRONG&gt;splunk remove forward-server indexer1:9997&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;splunk remove forward-server indexer2:9997&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;splunk remove monitor /var/log/mylog&lt;/STRONG&gt;&lt;BR /&gt;i created a new index on the 2 indexers and on the search head with the GUI. lets call it myindex and i didn't change the defaults&lt;BR /&gt;i modified &lt;STRONG&gt;etc/users/admin/myapp/local/props.conf&lt;/STRONG&gt; file on the search head, because that was the only place where i could find a reference to the monitor i've added.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[mylog-too_small]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SHOULD_LINEMERGE = false&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;[mylog]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SHOULD_LINEMERGE = false&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LINE_BREAKER = ([\r\n]+)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;adding forwarders and monitor again:&lt;BR /&gt;&lt;STRONG&gt;splunk add forward-server indexer1:9997&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;splunk add forward-server indexer2:9997&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;splunk add monitor /var/log/mylog&lt;/STRONG&gt;&lt;BR /&gt;What the heck? no data shows up on the search head&lt;/P&gt;
&lt;P&gt;What have I missed where?&lt;BR /&gt;and in what order are all these props.conf files applied?&lt;BR /&gt;I have some of them in different folders&lt;/P&gt;
&lt;P&gt;any help or hint is welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 16:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-data-from-the-Linux-machines-to-Splunk/m-p/588459#M103285</guid>
      <dc:creator>pbnl</dc:creator>
      <dc:date>2022-03-10T16:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add data from the Linux machines to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-data-from-the-Linux-machines-to-Splunk/m-p/588468#M103290</link>
      <description>&lt;P&gt;I would start from this documentation page to how data progresses through various pipelines and Splunk instances.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/WhatSplunkdoeswithyourdata" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/WhatSplunkdoeswithyourdata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 17:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-data-from-the-Linux-machines-to-Splunk/m-p/588468#M103290</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-03-10T17:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add data from the Linux machines to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-data-from-the-Linux-machines-to-Splunk/m-p/588469#M103291</link>
      <description>&lt;P&gt;There is also this useful, if slightly dated, site:&amp;nbsp;&lt;A href="https://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F" target="_blank"&gt;https://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 17:38:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-data-from-the-Linux-machines-to-Splunk/m-p/588469#M103291</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-10T17:38:33Z</dc:date>
    </item>
  </channel>
</rss>

