<?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: Trouble ingesting multi line VB script output in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Trouble-ingesting-multi-line-VB-script-output/m-p/315637#M19258</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Have you been though the data preview to configure and preview the ingestion ? (Settings / Add data)&lt;/P&gt;

&lt;P&gt;You data is just regular CSV:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ csv ]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=UTF-8
INDEXED_EXTRACTIONS=csv
KV_MODE=none
category=Structured
description=Comma-separated value format. Set header and other settings in "Delimited Settings"
disabled=false
pulldown_type=true
HEADER_FIELD_LINE_NUMBER=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I added the "HEADER_FIELD_LINE_NUMBER", this expect the header to be the first line.&lt;BR /&gt;
If you look at the data preview, you will see other possibilities like using a regular expression.&lt;/P&gt;

&lt;P&gt;Note you cannot have more than 1 header in the CSV event, Splunk won't manage multi csv files at once. (does not seem to your case)&lt;/P&gt;

&lt;P&gt;Guilhem&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 14:10:58 GMT</pubDate>
    <dc:creator>guilmxm</dc:creator>
    <dc:date>2020-09-29T14:10:58Z</dc:date>
    <item>
      <title>Trouble ingesting multi line VB script output</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Trouble-ingesting-multi-line-VB-script-output/m-p/315636#M19257</link>
      <description>&lt;P&gt;Currently we are using VB scripts to query the WMI namespace within windows for data collection I have written a simple script to pull filesystem information in csv format. The issue is that Splunk will only ingest the header and the first row of data and nothing further.&lt;/P&gt;

&lt;P&gt;Example data:&lt;BR /&gt;
filesystem,label,type,format,capacitymb,freespace,pctused&lt;BR /&gt;
C:,OSDisk,Local Fixed Disk,NTFS,475914,384259,19.26&lt;BR /&gt;
H:,Users,Network Connection,NTFS,2097022,553788,73.59&lt;BR /&gt;
P:,public,Network Connection,NTFS,5242750,2229850,57.47&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;BR /&gt;
[script://.\bin\filesystem.bat]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
interval = 60&lt;BR /&gt;
source = filesystem&lt;BR /&gt;
sourcetype = windows:filesystem&lt;BR /&gt;
index = custom_temp&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[windows:filesystem]&lt;BR /&gt;
INDEXED_EXTRACTIONS=CSV&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
FIELD_HEADER_REGEX=(^filesystem,.*)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:14:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Trouble-ingesting-multi-line-VB-script-output/m-p/315636#M19257</guid>
      <dc:creator>JamesRConley</dc:creator>
      <dc:date>2020-09-29T14:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ingesting multi line VB script output</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Trouble-ingesting-multi-line-VB-script-output/m-p/315637#M19258</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Have you been though the data preview to configure and preview the ingestion ? (Settings / Add data)&lt;/P&gt;

&lt;P&gt;You data is just regular CSV:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ csv ]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=UTF-8
INDEXED_EXTRACTIONS=csv
KV_MODE=none
category=Structured
description=Comma-separated value format. Set header and other settings in "Delimited Settings"
disabled=false
pulldown_type=true
HEADER_FIELD_LINE_NUMBER=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I added the "HEADER_FIELD_LINE_NUMBER", this expect the header to be the first line.&lt;BR /&gt;
If you look at the data preview, you will see other possibilities like using a regular expression.&lt;/P&gt;

&lt;P&gt;Note you cannot have more than 1 header in the CSV event, Splunk won't manage multi csv files at once. (does not seem to your case)&lt;/P&gt;

&lt;P&gt;Guilhem&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Trouble-ingesting-multi-line-VB-script-output/m-p/315637#M19258</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2020-09-29T14:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ingesting multi line VB script output</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Trouble-ingesting-multi-line-VB-script-output/m-p/315638#M19259</link>
      <description>&lt;P&gt;I saved off my script output to a csv file and then imported it into Splunk using the add data function. It of course added everything perfectly as it should. I copied the props.conf sample which is shown below. I then jammed this into the props.conf into the project on my forwarder and restarted. I am still not getting any additional lines in Splunk, only the first line after the header of my command.&lt;/P&gt;

&lt;P&gt;[windows:filesystem]&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
FIELD_HEADER_REGEX=(^filesystem,.*)&lt;BR /&gt;
INDEXED_EXTRACTIONS=csv&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
category=Structured&lt;BR /&gt;
description=Comma-separated value format. Set header and other settings in "Delimited Settings"&lt;BR /&gt;
disabled=false&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
FIELD_QUOTE="&lt;BR /&gt;
FIELD_DELIMITER=,&lt;/P&gt;

&lt;P&gt;I feel like this is an issue with the way Splunk interprets the output of a line break from a .bat file.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Trouble-ingesting-multi-line-VB-script-output/m-p/315638#M19259</guid>
      <dc:creator>JamesRConley</dc:creator>
      <dc:date>2020-09-29T14:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ingesting multi line VB script output</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Trouble-ingesting-multi-line-VB-script-output/m-p/315639#M19260</link>
      <description>&lt;P&gt;Ok I was just being stupid here. I forgot the scripts on the forwarder run as "administrator" and the output of my script only had a single line. Everything is working as intended I was just testing my script as myself instead of as the administrator.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:11:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Trouble-ingesting-multi-line-VB-script-output/m-p/315639#M19260</guid>
      <dc:creator>JamesRConley</dc:creator>
      <dc:date>2017-05-23T18:11:31Z</dc:date>
    </item>
  </channel>
</rss>

