<?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: How come event breaker based on timestamp works when uploading a file but not with source type props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423854#M74430</link>
    <description>&lt;P&gt;You can not change already ingested logs when it comes to breaking them.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 15:32:37 GMT</pubDate>
    <dc:creator>dkeck</dc:creator>
    <dc:date>2019-01-24T15:32:37Z</dc:date>
    <item>
      <title>How come event breaker based on timestamp works when uploading a file but not with source type props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423853#M74429</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I am trying to index a ProxySQL log file which looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ProxySQL LOG QUERY: thread_id="25" username="blabla" schemaname=information_schema" client="10.206.119.24:62462" HID=1 
server="backendserver.example:3306" starttime="2019-01-24 14:13:42.436497" endtime="2019-01-24 14:13:42.446705" 
duration=10208us digest="0x3C740A905F66E34A"
SELECT  * from example
ProxySQL LOG QUERY: thread_id="25" username="blabla" schemaname=information_schema" client="10.206.119.24:62462" HID=1 
server="backendserver.example:3306" starttime="2019-01-24 14:13:42.436497" endtime="2019-01-24 14:13:42.446705" 
duration=10208us digest="0x3C740A905F66E34A"
SELECT  @@port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When i tried to add this log using add data, i selected event_breaker auto and time_prefix with "stattime", and everything was perfect&lt;/P&gt;

&lt;P&gt;Then i tried it with props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[proxysql]
TIME_PREFIX = starttime
SHOULD_LINEMERGE = true
EVENT_BREAKER_ENABLED = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In inputs.conf, I got sourcetype = proxysql&lt;/P&gt;

&lt;P&gt;And it does not work also. Is it possible that even if I set it up properly the new settings won't apply to logs already indexed? Because i tried various combinations but they don't change. (the log file is static for now; it's not getting any data in so it's already been indexed)&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423853#M74429</guid>
      <dc:creator>0xlc</dc:creator>
      <dc:date>2020-09-29T22:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: How come event breaker based on timestamp works when uploading a file but not with source type props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423854#M74430</link>
      <description>&lt;P&gt;You can not change already ingested logs when it comes to breaking them.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 15:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423854#M74430</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-24T15:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How come event breaker based on timestamp works when uploading a file but not with source type props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423855#M74431</link>
      <description>&lt;P&gt;i was expecting that. &lt;/P&gt;

&lt;P&gt;at the end, i save the configuration of props made by the web upload data  and overwritting proxysql sourcettype, then i just copy and paste from the searchhead to the master node in props.conf&lt;/P&gt;

&lt;P&gt;tomorrow i got new logs to check if it works&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 15:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423855#M74431</guid>
      <dc:creator>0xlc</dc:creator>
      <dc:date>2019-01-24T15:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: How come event breaker based on timestamp works when uploading a file but not with source type props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423856#M74432</link>
      <description>&lt;P&gt;you can check if you indexers picked up the config with btool&lt;/P&gt;

&lt;P&gt;./splunk cmd btool props list --debug &lt;/P&gt;

&lt;P&gt;you could add ,| grep to grep for your app name to lower the output of btool&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 15:46:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423856#M74432</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-24T15:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: How come event breaker based on timestamp works when uploading a file but not with source type props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423857#M74433</link>
      <description>&lt;P&gt;i tried with a new log file and it works and i can extract all fields except the queries which is always the last lines,&lt;/P&gt;

&lt;P&gt;basically all the queries are in a new line and splitted in multiple lines  like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ProxySQL LOG QUERY: thread_id="43" username="redacted" schemaname=information_schema" client=redacted:51827" HID=1 server="redacted:3306" starttime="2019-01-24 10:37:20.959324" endtime="2019-01-24 10:37:21. 47135" duration=87811us digest="0x8D9F0318EE412645"
select date_format(t.redacted,'%d-%m-%Y') date, t.redacted,t.redacted, c.redacted, c.description, CASE when t.redacted = 'redacted' 
then redacted else ppcustom_field end Ref, t.redacted, t.net_amount, t.redacted
from redacted.redacted c, redacted.redacted t
where c.redacted = t.redacted
-- and t.redacted is not null
and t.redacted &amp;gt;= '2019-01-23 00:00:01' and t.redacted &amp;lt; '2019-01-24 00:00:01'
order by 2,1,4,6,5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i don't know how to write a regex to extract that, i can't do ^select because it could be a query update. what i am sure is the query is always after the digest field.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 16:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-event-breaker-based-on-timestamp-works-when-uploading-a/m-p/423857#M74433</guid>
      <dc:creator>0xlc</dc:creator>
      <dc:date>2019-01-24T16:18:59Z</dc:date>
    </item>
  </channel>
</rss>

