<?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: Need help with regex to read all the value in all the lines in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-read-all-the-value-in-all-the-lines/m-p/613683#M213286</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249594"&gt;@fajri1203&lt;/a&gt;&amp;nbsp; Try search-time approach, UF is a universal forwarder not applicable for your case. I wonder Add-on Microsoft Cloud Services don't have the extraction by default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to configure props.conf, and transforms.conf on search-head (SH) under $SPLUNK_HOME/etc/&amp;lt;app_name&amp;gt;/local OR&amp;nbsp; $SPLUNK_HOME/etc/system/local. If you are having SH cluster and using SH deployer you must know how to bundle push or contact your splunk admin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In standalone splunk SH the restart is required post changes.&lt;/P&gt;&lt;P&gt;[mscs:storage:blob]&lt;/P&gt;&lt;P&gt;REPORT-extract-csv-fields =&amp;nbsp;extract-csv-fields&lt;/P&gt;&lt;P&gt;[extract-csv-fields]&lt;BR /&gt;DELIMS=","&lt;BR /&gt;FIELDS = "pluginid","alertRef","alert","name","riskcode","confidence","riskdesc","confidencedesc","desc","instances","count","solution","otherinfo","reference","cweid","wascid","sourceid"&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 04:55:13 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2022-09-20T04:55:13Z</dc:date>
    <item>
      <title>How to write regex to read all the value in all the lines?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-read-all-the-value-in-all-the-lines/m-p/613666#M213280</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am desperately seeking help for my new query in SPLUNK. The search result will look like the below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fajri1203_0-1663639729351.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21539i93D67398F33B45AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fajri1203_0-1663639729351.png" alt="fajri1203_0-1663639729351.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"pluginid","alertRef","alert","name","riskcode","confidence","riskdesc","confidencedesc","desc","instances","count","solution","otherinfo","reference","cweid","wascid","sourceid"
"100001","100001","Unexpected Content-Type was returned","Unexpected Content-Type was returned","1","3","Low (High)","High","&amp;lt;p&amp;gt;A Content-Type of text/html was returned by the server.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;This is not one of the types expected to be returned by an API.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Raised by the 'Alert on Unexpected Content Types' script&amp;lt;/p&amp;gt;","System.Xml.XmlElement","933","","","","-1","-1","20420"
"100000","100000","A Client Error response code was returned by the server","A Client Error response code was returned by the server","0","3","Informational (High)","High","&amp;lt;p&amp;gt;A response code of 401 was returned by the server.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;This may indicate that the application is failing to handle unexpected input correctly.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Raised by the 'Alert on HTTP Response Code Error' script&amp;lt;/p&amp;gt;","System.Xml.XmlElement","2831","","","","388","20","70"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My aim is to have a table in Splunk that can categorize each the value with the new field. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pluginid alertRef alert
100001	 100001	  Unexpected Content-Type was returned","Unexpected Content-Type was returned
100000	 100000   A Client Error response code was returned by the server&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my regex should be able to read all the new line inside the csv search result..&lt;/P&gt;
&lt;P&gt;My current solution is not really capable (as it only read single line, not multiple lines) as you can see below (I skipped the column name) :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;^"\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+","\w+"\s+"(?P&amp;lt;plugin_id&amp;gt;\d+)","(?P&amp;lt;alert_ref&amp;gt;\d+)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me to get the regex able to read all the new line in my CSV search result&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:37:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-read-all-the-value-in-all-the-lines/m-p/613666#M213280</guid>
      <dc:creator>fajri1203</dc:creator>
      <dc:date>2022-09-20T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Need help with regex to read all the value in all the lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-read-all-the-value-in-all-the-lines/m-p/613668#M213282</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249594"&gt;@fajri1203&lt;/a&gt;&amp;nbsp; You don't need a regex you could do it two ways if .csv is being forwarded from UF then set&lt;/P&gt;&lt;P&gt;inside props.conf&lt;/P&gt;&lt;P&gt;[sourcetypename]&lt;/P&gt;&lt;P&gt;INDEXED_EXTRACTIONS = csv&lt;/P&gt;&lt;P&gt;At search-time, on search-head you shall do following&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/quick-n-dirty-delimited-data-sourcetypes-and-you.html?301=/blog/2013/03/11/quick-n-dirty-delimited-data-sourcetypes-and-you.html&amp;amp;_gl=1*1q6w3af*_ga*NDMxNjgzMDU4LjE2Mjc2MDY0MDg.*_gid*NDUyOTcwODc3LjE2NjM1NDI5NDI.&amp;amp;_ga=2.10800753.452970877.1663542942-431683058.1627606408&amp;amp;locale=en_us" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/quick-n-dirty-delimited-data-sourcetypes-and-you.html?301=/blog/2013/03/11/quick-n-dirty-delimited-data-sourcetypes-and-you.html&amp;amp;_gl=1*1q6w3af*_ga*NDMxNjgzMDU4LjE2Mjc2MDY0MDg.*_gid*NDUyOTcwODc3LjE2NjM1NDI5NDI.&amp;amp;_ga=2.10800753.452970877.1663542942-431683058.1627606408&amp;amp;locale=en_us&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 02:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-read-all-the-value-in-all-the-lines/m-p/613668#M213282</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2022-09-20T02:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with regex to read all the value in all the lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-read-all-the-value-in-all-the-lines/m-p/613671#M213283</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for the quick reply. May I know what is UF?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently our data is being taken from Azure Storage Account using the plugin called "Splunk Add-on for Microsoft Cloud Services" as you can see at the below image:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21540iE2D6E249711B7350/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 02:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-read-all-the-value-in-all-the-lines/m-p/613671#M213283</guid>
      <dc:creator>fajri1203</dc:creator>
      <dc:date>2022-09-20T02:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with regex to read all the value in all the lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-read-all-the-value-in-all-the-lines/m-p/613683#M213286</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249594"&gt;@fajri1203&lt;/a&gt;&amp;nbsp; Try search-time approach, UF is a universal forwarder not applicable for your case. I wonder Add-on Microsoft Cloud Services don't have the extraction by default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to configure props.conf, and transforms.conf on search-head (SH) under $SPLUNK_HOME/etc/&amp;lt;app_name&amp;gt;/local OR&amp;nbsp; $SPLUNK_HOME/etc/system/local. If you are having SH cluster and using SH deployer you must know how to bundle push or contact your splunk admin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In standalone splunk SH the restart is required post changes.&lt;/P&gt;&lt;P&gt;[mscs:storage:blob]&lt;/P&gt;&lt;P&gt;REPORT-extract-csv-fields =&amp;nbsp;extract-csv-fields&lt;/P&gt;&lt;P&gt;[extract-csv-fields]&lt;BR /&gt;DELIMS=","&lt;BR /&gt;FIELDS = "pluginid","alertRef","alert","name","riskcode","confidence","riskdesc","confidencedesc","desc","instances","count","solution","otherinfo","reference","cweid","wascid","sourceid"&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 04:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-read-all-the-value-in-all-the-lines/m-p/613683#M213286</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2022-09-20T04:55:13Z</dc:date>
    </item>
  </channel>
</rss>

