Advertisement
Guest User

Untitled

a guest
Nov 17th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. input {
  2. jdbc {
  3. jdbc_driver_library => "mysql-connector-java-5.1.39-bin.jar"
  4. jdbc_driver_class => "com.mysql.jdbc.Driver"
  5. jdbc_connection_string => "jdbc:mysql://gratiadb03.fnal.gov:3306/gratia"
  6. jdbc_user => "reader"
  7. jdbc_password => "XXXXXXXXXXX"
  8. statement => '
  9. select
  10. m.SummaryID,
  11. m.EndTime as "@timestamp",
  12. m.CommonName as "CommonName",
  13. m.WallDuration*m.Cores/2600 as "CoreHours",
  14. m.Njobs as "Count",
  15. m.CpuSystemDuration as "CpuDuration_system",
  16. m.CpuUserDuration as "CpuDuration_user",
  17. m.DistinguishedName as "DN",
  18. m.EndTime as "EndTime",
  19. m.Grid as "Grid",
  20. m.HostDescription as "Host_description",
  21. m.ProbeName as "ProbeName",
  22. m.Cores as "Processors",
  23. p.ReportableProjectName as "ProjectName",
  24. p.ReportableProjectName as "RawProjectName",
  25. v.VOName as "RawVOName",
  26. v.ReportableVOName as "ReportableVOName",
  27. m.ApplicationExitCode as "Resource_ExitCode",
  28. m.ResourceType as "ResourceType",
  29. s.SiteName as "SiteName",
  30. vo.VOName as "VOName",
  31. m.WallDuration as "WallDuration"
  32. from
  33. MasterSummaryData m
  34. join ProjectNameCorrection p using (ProjectNameCorrid)
  35. join VONameCorrection v
  36. join VO vo
  37. join Probe pb
  38. join Site s using (siteid)
  39. where
  40. m.VOcorrid=v.corrid
  41. AND v.VOid=vo.VOid
  42. AND pb.probename=m.ProbeName
  43. AND EndTime < makedate(2015,17)'
  44. lowercase_column_names => false
  45. type => "JobUsageRecordSummary"
  46. }
  47. }
  48. filter {
  49. mutate {
  50. convert => {"Resource_ExitCode" => "integer"}
  51. }
  52. }
  53. output {
  54. #stdout { codec => "rubydebug" }
  55. elasticsearch {
  56. hosts => [ "localhost" ]
  57. index => "gratia.osg.summary0"
  58. document_id => "%{SummaryID}"
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement