<?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 handle scripted input as single line values in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/handle-scripted-input-as-single-line-values/m-p/91449#M19014</link>
    <description>&lt;P&gt;Hi Splunkies,&lt;/P&gt;

&lt;P&gt;another question by me... I run a script every 15 min which counts DFS connections on different servers. the output of this script looks pretty much this way in the search app using source="dfs_connections" searchstring.&lt;/P&gt;

&lt;P&gt;DFSConnection_ServerA=2658&lt;BR /&gt;
DFSConnection_ServerB=1554&lt;BR /&gt;
DFSConnection_ServerC=1217&lt;BR /&gt;
DFSConnection_ServerD=242&lt;BR /&gt;
DFSConnection_ServerE=680&lt;BR /&gt;
DFSConnection_ServerF=639&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;If i copy the text and paste it here, it will look like &lt;/P&gt;

&lt;P&gt;DFSConnection_ServerA=2658DFSConnection_ServerB=1554DFSConnection_ServerC=1217DFSConnection_ServerD=242DFSConnection_ServerE=680DFSConnection_ServerF=639 ...&lt;/P&gt;

&lt;P&gt;I realize that the values aren't splitted... I try to create a timechart (linechart) that shows the dfs connection (each 15 min) for each Server. So I can see peeks during the week.&lt;/P&gt;

&lt;P&gt;How can I seperate the Values, so splunk knows, that each ServerX=1234 line is a single value?&lt;/P&gt;

&lt;P&gt;I hope you understand my problem and you can give me a hint!&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;

&lt;P&gt;Jan&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:01:47 GMT</pubDate>
    <dc:creator>jan_wohlers</dc:creator>
    <dc:date>2020-09-28T12:01:47Z</dc:date>
    <item>
      <title>handle scripted input as single line values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/handle-scripted-input-as-single-line-values/m-p/91449#M19014</link>
      <description>&lt;P&gt;Hi Splunkies,&lt;/P&gt;

&lt;P&gt;another question by me... I run a script every 15 min which counts DFS connections on different servers. the output of this script looks pretty much this way in the search app using source="dfs_connections" searchstring.&lt;/P&gt;

&lt;P&gt;DFSConnection_ServerA=2658&lt;BR /&gt;
DFSConnection_ServerB=1554&lt;BR /&gt;
DFSConnection_ServerC=1217&lt;BR /&gt;
DFSConnection_ServerD=242&lt;BR /&gt;
DFSConnection_ServerE=680&lt;BR /&gt;
DFSConnection_ServerF=639&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;If i copy the text and paste it here, it will look like &lt;/P&gt;

&lt;P&gt;DFSConnection_ServerA=2658DFSConnection_ServerB=1554DFSConnection_ServerC=1217DFSConnection_ServerD=242DFSConnection_ServerE=680DFSConnection_ServerF=639 ...&lt;/P&gt;

&lt;P&gt;I realize that the values aren't splitted... I try to create a timechart (linechart) that shows the dfs connection (each 15 min) for each Server. So I can see peeks during the week.&lt;/P&gt;

&lt;P&gt;How can I seperate the Values, so splunk knows, that each ServerX=1234 line is a single value?&lt;/P&gt;

&lt;P&gt;I hope you understand my problem and you can give me a hint!&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;

&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/handle-scripted-input-as-single-line-values/m-p/91449#M19014</guid>
      <dc:creator>jan_wohlers</dc:creator>
      <dc:date>2020-09-28T12:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: handle scripted input as single line values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/handle-scripted-input-as-single-line-values/m-p/91450#M19015</link>
      <description>&lt;P&gt;To fix the issue at the origin:&lt;BR /&gt;
You can change your script to add a line break at the end of each output.&lt;BR /&gt;
or in the sourcetype of your script add : SHOULD_LINEMERGE=false&lt;/P&gt;

&lt;P&gt;To fix it at search time, &lt;BR /&gt;
try to reformat your event, and force a key value extraction&lt;/P&gt;

&lt;P&gt;mysearch | rex mode=sed "s/DFSConnection/ DFSConnection/g" | extract pairdelim=" " kvdelim="="&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/Extract"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.3/SearchReference/Extract&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 15:16:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/handle-scripted-input-as-single-line-values/m-p/91450#M19015</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-07-05T15:16:01Z</dc:date>
    </item>
  </channel>
</rss>

