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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...