<?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: path or logfiles location for 1500 servers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569519#M100992</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;thanks but the path we are getting here is of forwarders path or path of logs,file types we configured&amp;nbsp; to send to splunk ? please elaborate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Oct 2021 09:00:40 GMT</pubDate>
    <dc:creator>Mukunda7</dc:creator>
    <dc:date>2021-10-04T09:00:40Z</dc:date>
    <item>
      <title>path or logfiles location for 1500 servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569515#M100990</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;We have some 1500 servers where splunk forwarders installed. we need the path to find location of data or logs coming from these servers. Is there a simple way to do that?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 08:29:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569515#M100990</guid>
      <dc:creator>Mukunda7</dc:creator>
      <dc:date>2021-10-04T08:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: path or logfiles location for 1500 servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569516#M100991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238964"&gt;@Mukunda7&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you should know where Universal Forwarder is installed on your servers, anyway, you could try a search like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal
| rex field=source "^(?&amp;lt;inst_path&amp;gt;.*splunkforwarder|splunkuniversalforwarder)"
| stats values(inst_path) AS inst_path BY host&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 08:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569516#M100991</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-10-04T08:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: path or logfiles location for 1500 servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569519#M100992</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;thanks but the path we are getting here is of forwarders path or path of logs,file types we configured&amp;nbsp; to send to splunk ? please elaborate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 09:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569519#M100992</guid>
      <dc:creator>Mukunda7</dc:creator>
      <dc:date>2021-10-04T09:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: path or logfiles location for 1500 servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569521#M100993</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238964"&gt;@Mukunda7&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you want the path of the forwarders, you can use my search.&lt;/P&gt;&lt;P&gt;if you want the path and the filename of all log files, you can use a similar search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=*
| stats count BY source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;if instead you want only the path but not the filename of all log files, you can use a similar search:&lt;/P&gt;&lt;P&gt;for Windows servers:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=*
| rex field=source "(?&amp;lt;log_path&amp;gt;.*)\\\.+$"
| stats count BY log_path&lt;/LI-CODE&gt;&lt;P&gt;for Linux servers:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=*
| rex field=source "(?&amp;lt;log_path&amp;gt;.*)\/.+$"
| stats count BY log_path&lt;/LI-CODE&gt;&lt;P&gt;probably it will works also one search with both the regexes, but I cannt try it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=* 
| rex field=source "(?&amp;lt;log_path&amp;gt;.*)((\\\)|(\/)).+$"
| stats count BY log_path&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 09:12:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569521#M100993</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-10-04T09:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: path or logfiles location for 1500 servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569525#M100994</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fantastic thanks. what can we add in the query to display names of respective servers and&amp;nbsp;&lt;SPAN&gt;path and the filename of all log files.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 10:04:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569525#M100994</guid>
      <dc:creator>Mukunda7</dc:creator>
      <dc:date>2021-10-04T10:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: path or logfiles location for 1500 servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569526#M100995</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238964"&gt;@Mukunda7&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;if this answer solves your need, please accept it for the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 10:20:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569526#M100995</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-10-04T10:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: path or logfiles location for 1500 servers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569532#M100996</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238964"&gt;@Mukunda7&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;actually, i wanted to answer you in this fid way right away, but i forgot to edit the answer,&lt;/P&gt;&lt;P&gt;to have only the path,&lt;/P&gt;&lt;P&gt;you could use this search for windows servers:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=*
| rex field=source "(?&amp;lt;log_path&amp;gt;.*)\\\.+$"
| stats values(log_path) AS log_path count BY host&lt;/LI-CODE&gt;&lt;P&gt;and for Linux servers:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=*
| rex field=source "(?&amp;lt;log_path&amp;gt;.*)\/.+$"
| stats values(log_path) AS log_path count BY host&lt;/LI-CODE&gt;&lt;P&gt;if you want all the source files, you could use this search both for Windows and Linux:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| metasearch index=*
| stats values(source) AS source count BY host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 11:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/path-or-logfiles-location-for-1500-servers/m-p/569532#M100996</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-10-04T11:21:36Z</dc:date>
    </item>
  </channel>
</rss>

