Getting Data In

How to monitor a folder in Windows ? C:\Windows\assembly

chimbudp
Contributor

I would like to monitor assembly folder in windows.
Path :- C: \Windows \assembly

I have set the inputs.conf in Universal forwarder as below:

[monitor://path]
disabled = 0
interval= 00
index = Assemby_monitor
fullEvent = true

I have received no data under the Assembly_monitor index .
Do i need to set any other properties ?
Please help

0 Karma

Drainy
Champion

Ayn is trying to help below, you're best replying with actual detail and problems to his responses rather than starting a new question each time you have a reply 🙂

Ayn
Legend

What do you mean by that you want to monitor the assembly directory? This directory mainly consists of binary files, so I'm assuming you don't want to actually index their contents...?

0 Karma

MHibbin
Influencer

Hi,

You should check the docs for this file, here.

Firstly, I would just set the directory in the stanza, like this:

[monitor://C:\Windows\assembly]

Secondly, you do not require the "interval" parameter, this is for the Script and Perfmon stanzas.

Thirdly, you do not require the "fullEvent" parameter, this is for the FSChange stanza which is deprecated (as v5).

The following is probably what you want:

[monitor://C:\Windows\assembly]
index=Assembly_monitor

To confirm, are you searching with index="Assembly_monitor"? This will be required, unless you allow users to search across this index by default.

Hope this helps

Ayn
Legend

No, because you're using a monitor input, not fschange. By default Splunk will not read binary files because, well, they're binary and not very useful to work with in Splunk. You should use fschange.

0 Karma

chimbudp
Contributor

Hello Ayn,

inputs.conf as in Universal forwarder:

[monitor://C:\Windows\assembly]
disabled = 0
index = Assembly_Monitor
sourcetype = assembly_logs

props.conf in UF & indexer :

[assembly_logs]
KV_MODE = xml

But , i am not getting any data into Splunk now .

0 Karma

Ayn
Legend
0 Karma

chimbudp
Contributor

I can able to get the data into Splunk after i set the props.conf :
[Assembly]
NO_BINARY_CHECK = true

Now ,i am getting all the binary data - how can i get the relevant fields ?
Like Assembly name, date created , Version ., etc.

0 Karma

chimbudp
Contributor

[monitor://C:\Windows\assembly]
index=Assembly_monitor

the above stanza forwards no data into Splunk indexer.

i have set the source type as assembly and modified as below inputs.conf:
[monitor://C:\Windows\assembly]
index=Assembly_monitor
sourcetype=Assembly

and edited props.conf as :

[Assembly]
NO_BINARY_CHECK = true

-- Even also i am not getting any data 😞
Please help

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...