Splunk Enterprise

how to monitoring same file. it is different location file.

YUNHYEONG
Explorer

hello splunker. 

I would like to monitor the same file in another folder as below.

each host is a folder name.

it is works in one app.

The file names in the folder may be the same or different.

저장.png

my setting : input.conf

[monitor://D:\Splunk\Check\TEST*\*.csv]
disabled = false
host_regex =
index = test
host =
host_segment = 3
sourcetype = testcheck
crcSalt = <<SOURCE>>

ty help me

Labels (2)
Tags (1)
0 Karma

rnowitzki
Builder

Hi @YUNHYEONG ,

There is one issue with the host segment, let me quote the Documentation:

* On Windows machines, the drive letter and colon before the backslash count
  as one segment.
    * For example, if you set host_segment=3 and the monitor path is
      D:\logs\servers\host01, Splunk software sets the host as "servers" because
      that is the third segment.

So it would need to be host_segment = 4 in your case.

Other than that I don't see a problem with the settings.
What does not work for you, besides the host assignment?

BR
Ralph

--
Karma and/or Solution tagging appreciated.
0 Karma

YUNHYEONG
Explorer

hello @rnowitzki 

you means that i can same file monitoring at my setting?

i testing but, only some data is monitored.

ex) host : TEST1, TEST3

It also attempted to set up at host_segment = 4.

The result was that the host name was a file name. not folder name

is it ok. host_segment = 3 

my problem is that some of the same files in other folders are monitored. why???? T_T

ty so much. 

0 Karma

rnowitzki
Builder

Hi @YUNHYEONG,

Yes, it should ingest all the files matching the path pattern.
Can you share some examples of files that are not getting indexed? (full path and filename).

Also, is the problem that you are monitoring too few files or too many files? 
=> Because you wrote "only some data is monitored." vs. "some of the same files in other folders are monitored"...

BR
Ralph




--
Karma and/or Solution tagging appreciated.
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...